* {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-sizing: border-box;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
body {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: transparent;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
    border: 1px solid #e5e7eb;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: yellow;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    height: 100vh;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    align-items: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-container {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 100%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    max-width: 800px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    height: 80vh;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex-direction: column;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    overflow: hidden;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-header {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    text-align: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    position: relative;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.header-controls {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-top: 10px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    gap: 10px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.header-btn {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: rgba(255, 255, 255, 0.2);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: 1px solid rgba(255, 255, 255, 0.3);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 8px 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    cursor: pointer;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 12px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: all 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.header-btn:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: rgba(255, 255, 255, 0.3);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transform: translateY(-1px);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-header h1 {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 24px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 5px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-header p {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    opacity: 0.9;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 14px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-messages {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex: 1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    overflow-y: auto;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #f8f9fa;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    animation: slideIn 0.3s ease-out;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
@keyframes slideIn {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    from {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        opacity: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        transform: translateY(20px);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    to {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        opacity: 1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        transform: translateY(0);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-avatar {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 40px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    height: 40px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 50%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    align-items: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-right: 12px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex-shrink: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.bot-message .message-avatar {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.user-message {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex-direction: row-reverse;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.user-message .message-avatar {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-right: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-left: 12px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-content {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 12px 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 18px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    max-width: 70%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    position: relative;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-text {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    line-height: 1.6;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    word-wrap: break-word;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-text strong {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-weight: 600;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-text em {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-style: italic;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-text code {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 0.9em;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-text br {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    line-height: 1.4;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.user-message .message-content {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-content p {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    line-height: 1.5;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.message-time {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 11px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #999;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-top: 5px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: block;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.user-message .message-time {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: rgba(255, 255, 255, 0.7);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-input-container {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-top: 1px solid #eee;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-input {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #f0f0f0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 25px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 5px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    align-items: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-input input {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex: 1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    outline: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 12px 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: transparent;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-input button {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 40px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    height: 40px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 50%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    cursor: pointer;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    align-items: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: transform 0.2s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-input button:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transform: scale(1.05);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-input button:active {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transform: scale(0.95);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.typing-indicator {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    align-items: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 12px 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 18px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    max-width: 70%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.typing-dots {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    gap: 4px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.typing-dots span {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 8px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    height: 8px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 50%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #ccc;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    animation: typingAnimation 1.4s infinite ease-in-out;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.typing-dots span:nth-child(1) {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    animation-delay: -0.32s;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.typing-dots span:nth-child(2) {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    animation-delay: -0.16s;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
@keyframes typingAnimation {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    0%, 80%, 100% {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        transform: scale(0.8);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        opacity: 0.5;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    40% {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        transform: scale(1);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        opacity: 1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* Scrollbar styling */* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-messages::-webkit-scrollbar {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 6px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-messages::-webkit-scrollbar-track {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #f1f1f1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-messages::-webkit-scrollbar-thumb {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #c1c1c1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 3px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.chat-messages::-webkit-scrollbar-thumb:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #a8a8a8;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* API Key Modal Styles */* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-modal {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    position: fixed;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    top: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    left: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 100%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    height: 100%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: rgba(0, 0, 0, 0.5);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    align-items: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    z-index: 1000;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    animation: fadeIn 0.3s ease-out;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-content {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 30px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    max-width: 500px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 90%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    text-align: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    animation: slideUp 0.3s ease-out;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
@keyframes fadeIn {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    from { opacity: 0; }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    to { opacity: 1; }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
@keyframes slideUp {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    from {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        opacity: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        transform: translateY(30px);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    to {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        opacity: 1;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        transform: translateY(0);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-content h3 {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #333;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-content p {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #666;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    line-height: 1.5;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-content input {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    width: 100%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 12px 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: 2px solid #e0e0e0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 8px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    outline: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: border-color 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-content input:focus {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-color: #667eea;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-buttons {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    gap: 10px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: center;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-buttons button {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 10px 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 8px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    cursor: pointer;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: all 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-buttons button:first-child {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-buttons button:first-child:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transform: translateY(-2px);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-buttons button:last-child {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #f0f0f0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #666;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-buttons button:last-child:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #e0e0e0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-info {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-top: 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-info a {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #667eea;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    text-decoration: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.api-key-info a:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    text-decoration: underline;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* RAG Panel Styles */* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-panel {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #f8f9fa;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-bottom: 1px solid #dee2e6;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: all 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    max-height: 300px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    overflow-y: auto;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-panel.hidden {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    max-height: 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 0 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    overflow: hidden;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-panel-content h3 {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin: 0 0 15px 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #495057;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.document-upload {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex-direction: column;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    gap: 10px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    margin-bottom: 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.doc-input {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 10px 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: 2px solid #e0e0e0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 8px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 14px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    outline: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: border-color 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.doc-input:focus {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-color: #667eea;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.doc-textarea {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 10px 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: 2px solid #e0e0e0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 8px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 14px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    outline: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    resize: vertical;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    min-height: 80px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-family: inherit;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: border-color 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.doc-textarea:focus {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-color: #667eea;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.upload-controls {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    gap: 10px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    flex-wrap: wrap;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-btn {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 8px 16px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-radius: 6px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    cursor: pointer;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 13px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transition: all 0.3s ease;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-weight: 500;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-btn.primary {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-btn.secondary {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: #f8f9fa;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #495057;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border: 1px solid #dee2e6;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-btn.danger {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: white;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-btn:hover {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    transform: translateY(-1px);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.rag-status {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: flex;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    justify-content: space-between;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    font-size: 12px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    color: #6c757d;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    padding: 10px 0;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    border-top: 1px solid #e9ecef;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.file-input {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    display: none;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* Responsive design */* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    body {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        padding: 10px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    .chat-container {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        height: 90vh;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        border-radius: 15px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    .message-content {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        max-width: 85%;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    .chat-header h1 {* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
        font-size: 20px;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f8;
    color: #374151;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: none;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: 2px;
}

.header-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.header-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.messages-container {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    flex: 1;
}

.message {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #19c37d;
    color: white;
    border-radius: 2px;
}

.user-message .message-avatar {
    background: #10a37f;
    color: white;
    border-radius: 50%;
}

.message-content {
    max-width: 100%;
    word-wrap: break-word;
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.user-message .message-text {
    background: #f7f7f8;
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    max-width: fit-content;
}

.bot-message .message-text {
    color: #374151;
}

.message-text strong {
    font-weight: 600;
    color: #111827;
}

.message-text em {
    font-style: italic;
}

.message-text code {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    color: #1e293b;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-input-container {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
}

.chat-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0;
    align-items: flex-end;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.5;
}

.chat-input input::placeholder {
    color: #9ca3af;
}

.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #10a37f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px 6px 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #0d8f6f;
}

.chat-input button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* API Key Modal and other styles remain the same but updated with new color scheme */
.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.api-key-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.api-key-content h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.api-key-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.api-key-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.api-key-content input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.api-key-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.api-key-buttons button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-key-buttons button:first-child {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.api-key-buttons button:first-child:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.api-key-buttons button:last-child {
    background: #ffffff;
    color: #374151;
}

.api-key-buttons button:last-child:hover {
    background: #f9fafb;
}

.api-key-info {
    margin-top: 12px;
}

.api-key-info a {
    color: #10a37f;
    text-decoration: none;
    font-size: 14px;
}

.api-key-info a:hover {
    text-decoration: underline;
}

/* RAG Panel Styles */
.rag-panel {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.rag-panel.hidden {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.rag-panel-content h3 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.document-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-input, .doc-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.doc-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.doc-input:focus, .doc-textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

.upload-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rag-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rag-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.rag-btn.primary:hover {
    background: #0d8f6f;
    border-color: #0d8f6f;
}

.rag-btn.secondary {
    background: #ffffff;
    color: #374151;
}

.rag-btn.secondary:hover {
    background: #f9fafb;
}

.rag-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.rag-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.rag-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.file-input {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-header h1 {
        font-size: 16px;
    }
    
    .messages-container {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
}