:root {
    --primary-color: #00ff9d;
    --secondary-color: #00b8ff;
    --dark-bg: #1e1e1e;
    --light-bg: #f5f5f5;
    --dark-text: #333;
    --light-text: #fff;
}

/* Theme Classes */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

body.light-mode {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* Header Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-btn {
    background: none;
    border: none;
    color: #ccc;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-btn i {
    font-size: 16px;
}

.header-btn:hover {
    background-color: #333;
    color: #fff;
}

.header-btn.active {
    background-color: #333;
    color: #00ff9d;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: scale(0);
}

.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}

.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: scale(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.setting-item {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item label {
    color: var(--light-text);
}

.setting-item select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    padding: 0.5rem;
    border-radius: 4px;
    width: 120px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

/* Header styles */
.main-header {
    background: linear-gradient(135deg, #2d2d2d, #1e1e1e);
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff9d;
}

.logo i {
    font-size: 2rem;
}

.logo span {
    background: linear-gradient(45deg, #00ff9d, #00b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h1 {
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    flex: 1;
    margin: 0 1rem;
}

.main-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.main-nav i {
    color: #00ff9d;
}

.coffee-btn {
    background: linear-gradient(45deg, #ff9a00, #ff7400);
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 154, 0, 0.3);
    font-size: 0.9em;
    margin-left: 8px;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 154, 0, 0.4);
    background: linear-gradient(45deg, #ff7400, #ff9a00);
}

.coffee-btn i {
    color: #fff;
    font-size: 1em;
}

.footer .coffee-btn {
    background: linear-gradient(45deg, #ff9a00, #ff7400);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85em;
    margin: 0 8px;
    vertical-align: middle;
}

.footer .coffee-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff7400, #ff9a00);
    color: #fff;
    text-decoration: none;
}

.footer .coffee-btn i {
    color: #fff;
    font-size: 0.9em;
}

/* Container layout */
.container {
    display: flex;
    height: calc(100vh - 130px);
    background-color: #1e1e1e;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    background-color: #252526;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.files-header {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #2d2d2d;
    border-bottom: 1px solid #333;
}

#filesList {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 200px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 2px 0;
    background-color: #2d2d2d;
    border-radius: 4px;
    cursor: pointer;
}

.file-item:hover {
    background-color: #3d3d3d;
}

.file-item.active {
    background-color: #37373d;
}

.file-name {
    flex: 1;
    margin-right: 8px;
}

.delete-file-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0.7;
}

.delete-file-btn:hover {
    opacity: 1;
    background-color: rgba(255, 107, 107, 0.1);
}

.new-file-buttons {
    padding: 15px;
    background: #2d2d2d;
    border-top: 1px solid #333;
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.new-file-btn {
    width: 100%;
    padding: 12px 15px;
    margin: 5px 0;
    background: linear-gradient(45deg, #2d2d2d, #3d3d3d);
    border: 1px solid #444;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    height: 42px;
}

.new-file-btn i {
    font-size: 16px;
    position: relative;
    top: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-3px);
}

.new-file-btn[data-type="html"] {
    border-left: 4px solid #e44d26;
}

.new-file-btn[data-type="css"] {
    border-left: 4px solid #264de4;
}

.new-file-btn[data-type="js"] {
    border-left: 4px solid #f7df1e;
}

.new-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.new-file-btn[data-type="html"]:hover {
    background: linear-gradient(45deg, #e44d26, #f16529);
    border-color: #e44d26;
}

.new-file-btn[data-type="css"]:hover {
    background: linear-gradient(45deg, #264de4, #2965f1);
    border-color: #264de4;
}

.new-file-btn[data-type="js"]:hover {
    background: linear-gradient(45deg, #f7df1e, #f4bf75);
    border-color: #f7df1e;
    color: #000;
}

.new-file-btn i {
    font-size: 16px;
}

.new-file-btn[data-type="html"] i {
    color: #e44d26;
}

.new-file-btn[data-type="css"] i {
    color: #264de4;
}

.new-file-btn[data-type="js"] i {
    color: #f7df1e;
}

/* Main content area */
.main-content {
    display: flex;
    height: calc(100vh - 40px);
}

.editor-container {
    width: 50%;
    height: 100%;
    border-right: 1px solid #333;
}

.preview-container {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
}

.preview-header {
    padding: 8px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #333;
}

#preview {
    height: calc(100% - 40px);
    width: 100%;
    border: none;
}

/* Button styles */
.preview-header .header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #363636;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.preview-header .header-btn:hover {
    background-color: #4a4a4a;
}

.preview-header .header-btn i {
    color: #4285f4;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
    border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #1e1e1e;
}

/* Global scrolling */
html, body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Code editor scrolling */
.CodeMirror {
    height: 100% !important;
    overflow: auto !important;
}

/* Footer */
.editor-footer {
    height: 80px;
    background-color: #252526;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-status {
    color: #858585;
    font-size: 14px;
    padding: 10px 0;
}

.footer-content {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.footer-nav a:hover {
    color: #fff;
    background-color: #333;
}

.separator {
    color: #444;
    font-size: 15px;
    font-weight: bold;
}

.footer-copyright {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-nav {
        gap: 8px;
    }
    
    .footer-nav a {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .separator {
        font-size: 13px;
    }
}

/* Footer Menu Styles */
.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-menu {
    display: flex;
    gap: 10px;
}

.footer-btn {
    background: none;
    border: none;
    color: #888;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background-color: #333;
    color: #fff;
}

.footer-btn i {
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1e1e1e;
    margin: auto;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    min-width: 300px;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #fff;
    background-color: #333;
}

/* Settings Styles */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-group label {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.settings-group input[type="checkbox"] {
    cursor: pointer;
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-btn {
    background-color: #333;
    border: none;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background-color: #444;
    color: #fff;
}

.theme-btn.active {
    background-color: #0066cc;
    color: #fff;
}

/* Help Styles */
.help-content {
    color: #ccc;
}

.help-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-content li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

kbd {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    font-family: monospace;
}

/* Page Controls */
.page-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    background: none;
    border: none;
    color: #888;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #333;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#currentPage, #totalPages {
    color: #fff;
    font-weight: bold;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    background-color: #2d2d2d;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c3c3c;
}

.top-bar h1 {
    font-size: 20px;
    font-weight: normal;
}

.top-buttons {
    display: flex;
    gap: 5px;
}

.top-buttons button {
    padding: 5px 10px;
    background-color: #3c3c3c;
    border: 1px solid #4c4c4c;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.top-buttons button:hover {
    background-color: #4c4c4c;
}

/* Action Buttons */
.action-buttons {
    padding: 10px;
    display: flex;
    gap: 10px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #3c3c3c;
}

.new-file-btn {
    padding: 8px 15px;
    background-color: #3c3c3c;
    border: 1px solid #4c4c4c;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.new-file-btn[data-type="html"] {
    background-color: #e44d26;
    border-color: #f16529;
}

.new-file-btn[data-type="html"]:hover {
    background-color: #f16529;
}

.new-file-btn[data-type="css"] {
    background-color: #264de4;
    border-color: #2965f1;
}

.new-file-btn[data-type="css"]:hover {
    background-color: #2965f1;
}

.new-file-btn[data-type="js"] {
    background-color: #f7df1e;
    border-color: #f7df1e;
    color: #000;
}

.new-file-btn[data-type="js"]:hover {
    background-color: #f7df1e;
    filter: brightness(1.1);
}

.new-file-btn i {
    font-size: 16px;
}

.new-file-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.new-file-btn.disabled:hover {
    background-color: inherit;
    filter: grayscale(1);
}

.new-file-btn[data-type="html"].disabled:hover {
    background-color: #e44d26;
}

.new-file-btn[data-type="css"].disabled:hover {
    background-color: #264de4;
}

.new-file-btn[data-type="js"].disabled:hover {
    background-color: #f7df1e;
}

/* File Tabs */
.file-tabs {
    display: flex;
    background-color: #2d2d2d;
    border-bottom: 1px solid #3c3c3c;
    overflow-x: auto;
    white-space: nowrap;
}

.tab {
    padding: 8px 20px;
    background-color: #3c3c3c;
    border-right: 1px solid #4c4c4c;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.tab.active {
    background-color: #1e1e1e;
    border-bottom: 2px solid #007acc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 5px;
    min-width: 300px;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #3c3c3c;
    border: 1px solid #4c4c4c;
    color: #fff;
    border-radius: 3px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.modal-buttons button {
    padding: 5px 15px;
    background-color: #3c3c3c;
    border: 1px solid #4c4c4c;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
}

#createFileBtn {
    background-color: #007acc;
    border-color: #007acc;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Footer Styles */
.editor-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-top: 2px solid #333;
    padding: 15px 20px;
    z-index: 1000;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.footer-nav a:hover {
    color: #fff;
    background-color: #333;
}

.separator {
    color: #444;
    font-size: 15px;
    font-weight: bold;
}

.footer-copyright {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 500px;
    height: 80vh;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #333;
}

.chat-header {
    padding: 12px;
    background-color: #252525;
    border-bottom: 1px solid #333;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
}

.chat-title i {
    color: #00ff9d;
}

.chat-controls {
    display: flex;
    gap: 4px;
}

.chat-btn {
    background: none;
    border: none;
    color: #888;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.chat-btn:hover {
    background-color: #333;
    color: #fff;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(80vh - 180px);
}

.chat-message {
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 15px;
    line-height: 1.5;
}

.chat-message.user {
    background-color: #2b2b2b;
    color: #fff;
    margin-left: auto;
}

.chat-message.ai {
    background-color: #1a1a1a;
    color: #fff;
    margin-right: auto;
    border-left: 3px solid #00ff9d;
}

.chat-message.system {
    background-color: #1a1a1a;
    color: #888;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9em;
}

.chat-message.system ul {
    text-align: left;
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.chat-input-container {
    padding: 16px;
    background-color: #252525;
    border-top: 1px solid #333;
}

.model-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 4px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.model-select optgroup {
    font-weight: 600;
    color: #00ff9d;
    background-color: #1a1a1a;
    padding: 8px;
}

.model-select optgroup:first-child {
    color: #ffcc00; /* Experimental models in yellow */
}

.model-select optgroup {
    font-weight: 600;
    color: #00ff9d;
    background-color: #1a1a1a;
    padding: 8px;
}

.model-info {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px;
    margin-bottom: 8px;
    color: #888;
    font-size: 14px;
    line-height: 1.4;
}

.model-info i {
    color: #00ff9d;
    font-size: 14px;
    margin-top: 2px;
}

.model-info span {
    flex: 1;
}

.model-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #2a2a2a;
    border-radius: 12px;
    font-size: 0.8em;
    color: #ccc;
}

.feature i {
    font-size: 12px;
}

.feature:nth-child(1) i {
    color: #ffcc00; /* Fast - yellow */
}

.feature:nth-child(2) i {
    color: #00ff9d; /* Free - green */
}

.feature:nth-child(3) i {
    color: #ff69b4; /* Multimodal - pink */
}

.feature:nth-child(4) i {
    color: #00bfff; /* Tool Use - blue */
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
}

#chatInput {
    flex: 1;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    resize: none;
    min-height: 60px;
    font-size: 15px;
}

.send-btn {
    background-color: #00ff9d;
    border: none;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background-color: #00cc7d;
}

/* AI Settings Styles */
.api-key-input {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0 16px 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
}

.key-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.action-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-btn:not(.danger) {
    background-color: #00ff9d;
    color: #000;
}

.action-btn.danger {
    background-color: #ff4444;
    color: #fff;
}

.action-btn:hover {
    opacity: 0.9;
}

.code-section {
    margin: 1rem 0;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    background: #1e1e1e;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2d2d2d;
    border-bottom: 1px solid #333;
}

.code-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-title i {
    font-size: 16px;
}

.fa-html5 { color: #e34c26; }
.fa-css3-alt { color: #264de4; }
.fa-js { color: #f0db4f; }

.copy-button {
    padding: 4px 12px;
    background: #363636;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #444;
}

.code-content {
    padding: 12px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-content code {
    display: block;
    white-space: pre;
}

.message-text {
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.5;
}

.code-section {
    margin: 1rem 0;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    background: #1e1e1e;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2d2d2d;
    border-bottom: 1px solid #333;
}

.code-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-title i {
    font-size: 16px;
}

.fa-html5 { color: #e34c26; }
.fa-css3-alt { color: #264de4; }
.fa-js { color: #f0db4f; }

.copy-button {
    padding: 4px 12px;
    background: #363636;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #444;
}

.code-content {
    padding: 12px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-content code {
    display: block;
    white-space: pre;
}

.message-text {
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.5;
}

.code-section {
    margin: 1rem 0;
    background: #282c34;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Fira Code', monospace;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #343841;
    border-bottom: 1px solid #3c404a;
}

.code-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #abb2bf;
    font-size: 0.9rem;
}

.code-title i {
    font-size: 1rem;
}

.fa-html5 { color: #e34c26; }
.fa-css3-alt { color: #264de4; }
.fa-js { color: #f0db4f; }

.copy-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #abb2bf;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background: #3c404a;
    color: #fff;
}

.code-content {
    padding: 12px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.code-content code {
    display: block;
    white-space: pre;
    color: #abb2bf;
    font-family: 'Fira Code', monospace;
}

.message-text {
    margin-bottom: 1rem;
    color: #abb2bf;
    line-height: 1.6;
    font-size: 1rem;
}

.language-html .keyword { color: #c678dd; }
.language-html .tag { color: #e06c75; }
.language-html .attribute { color: #d19a66; }
.language-html .string { color: #98c379; }

.language-css .property { color: #e06c75; }
.language-css .value { color: #98c379; }
.language-css .unit { color: #d19a66; }
.language-css .selector { color: #c678dd; }

.language-javascript .keyword { color: #c678dd; }
.language-javascript .string { color: #98c379; }
.language-javascript .number { color: #d19a66; }
.language-javascript .function { color: #61afef; }
.language-javascript .operator { color: #56b6c2; }

/* Global scrollbar styles */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #1e1e1e;
}

/* Webkit scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background-color: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}
