    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    
    :root {
        --primary-color: #1A73E8;
        --hover-color: #1967D2;
        --active-color: #174EA6;
        --text-primary: #202124;
        --text-secondary: #5F6368;
        --border-color: #DADCE0;
        --surface-color: #F8F9FA;
        --background-color: #FFFFFF;
        --error-color: #D93025;
        --success-color: #34A853;
        --animation-curve: cubic-bezier(0.4, 0.0, 0.2, 1);
        --code-bg: #282C34;
        --code-header-bg: #21252B;
        --code-text: #ABB2BF;
        --code-border: #3E4451;
        --code-comment: #5C6370;
        --code-keyword: #C678DD;
        --code-tag: #E06C75;
        --code-attribute: #D19A66;
        --code-string: #98C379;
        --sidebar-width: 300px;
        --sidebar-bg: var(--background-color);
        --sidebar-item-hover: var(--surface-color);
        --sidebar-item-active: #E8F0FE;
        --sidebar-text: var(--text-primary);
        --sidebar-text-secondary: var(--text-secondary);
        --sidebar-new-btn-bg: var(--primary-color);
        --sidebar-new-btn-hover: var(--hover-color);
        --sidebar-new-btn-active: var(--active-color);
        --preview-width: 0px;
        --max-line-width: 100%;
    }
    
    body {
        height: 100vh;
        width: 100%;
        overflow: hidden;
        background-color: var(--background-color);
        color: var(--text-primary);
    }
    
    .app-container {
        display: flex;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    .sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        background-color: var(--sidebar-bg);
        color: var(--sidebar-text);
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s var(--animation-curve);
        border-right: 1px solid var(--border-color);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-header {
        display: flex;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-logo {
        height: 40px;
        margin-right: 10px;
    }
    
    .sidebar-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--sidebar-text);
    }
    
    .new-chat-container {
        padding: 8px;
    }
    
    .new-chat-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px;
        height: 48px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.2s;
        text-align: left;
    }
    
    .new-chat-btn:hover {
        background-color: var(--hover-color);
    }
    
    .new-chat-btn:active {
        background-color: var(--active-color);
    }
    
    .new-chat-btn i {
        font-size: 16px;
    }
    
    .chat-list {
        flex: 1;
        overflow-y: auto;
        padding: 8px 8px 16px 8px;
    }
    
    .chat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        margin-bottom: 2px;
        border-radius: 8px;
        cursor: pointer;
        color: var(--sidebar-text);
        transition: background-color 0.2s;
        font-size: 14px;
    }
    
    .chat-item:hover {
        background-color: var(--sidebar-item-hover);
    }
    
    .chat-item.active {
        background-color: var(--sidebar-item-active);
        color: var(--primary-color);
    }
    
    .chat-item-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }
    
    .chat-item-menu {
        color: var(--sidebar-text-secondary);
        font-size: 16px;
        padding: 4px;
        visibility: hidden;
        cursor: pointer;
    }
    
    .chat-item:hover .chat-item-menu {
        visibility: visible;
    }
    
    .chat-menu {
        background-color: white;
        border-radius: 8px;
        padding: 8px 0;
        display: none;
        animation: fadeIn 0.2s var(--animation-curve);
        width: 150px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
    }
    
    .chat-menu.show {
        display: block;
    }
    
    .chat-menu-item {
        padding: 10px 16px;
        cursor: pointer;
        color: var(--text-primary);
        transition: background-color 0.2s;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 6px;
    }
    
    .chat-menu-item:hover {
        background-color: var(--surface-color);
    }
    
    .chat-menu-item.delete {
        color: var(--error-color);
    }
    
    .chat-menu-item i {
        font-size: 14px;
        width: 16px;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    .main-content {
        flex: 1;
        margin-left: 0;
        transition: margin-left 0.3s var(--animation-curve);
        display: flex;
    }
    
    .sidebar.open ~ .main-content {
        margin-left: var(--sidebar-width);
    }
    
    .container {
        width: calc(100% - var(--preview-width));
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        transition: width 0.3s var(--animation-curve);
    }
    
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 24px;
        border-bottom: 1px solid var(--border-color);
        z-index: 10;
        background-color: var(--background-color);
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-secondary);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s;
    }
    
    .menu-btn:hover {
        background-color: var(--surface-color);
        color: var(--text-primary);
    }
    
    .logo {
        display: flex;
        align-items: center;
        height: 50px;
    }
    
    .logo-image {
        height: 100%;
        width: auto;
        filter: drop-shadow(0 0 8px rgba(26, 115, 232, 0.7));
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .settings-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--text-secondary);
        transition: all 0.2s var(--animation-curve);
    }
    
    .settings-btn:hover {
        color: var(--primary-color);
        background-color: var(--surface-color);
    }
    
    .chat-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        padding: 0;
        position: relative;
        scroll-behavior: smooth;
    }
    
    .chat-area.with-messages {
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .welcome-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        width: 100%;
        max-width: 600px;
        padding: 40px 20px;
        animation: fadeInUp 0.8s var(--animation-curve);
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .welcome-logo {
        width: 180px;
        margin-bottom: 30px;
        filter: drop-shadow(0 0 12px rgba(26, 115, 232, 0.8));
    }
    
    .welcome-heading {
        font-size: 32px;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 16px;
        animation: fadeIn 0.8s 0.2s both var(--animation-curve);
    }
    
    .welcome-text {
        font-size: 16px;
        color: var(--text-secondary);
        line-height: 1.5;
        max-width: 500px;
        margin: 0 auto;
        animation: fadeIn 0.8s 0.3s both var(--animation-curve);
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .messages-container {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 24px;
        display: flex;
        flex-direction: column;
    }
    
    .message {
        max-width: 85%;
        margin-bottom: 24px;
        clear: both;
    }
    
    .user-message {
        align-self: flex-end;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        animation: slideInRight 0.3s var(--animation-curve);
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .bot-message {
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        animation: slideInLeft 0.3s var(--animation-curve);
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .message-content {
        padding: 14px 18px;
        border-radius: 18px;
        font-size: 15px;
        line-height: 1.5;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .user-message .message-content {
        background: var(--primary-color);
        color: white;
        border-bottom-right-radius: 4px;
    }
    
    .bot-message .message-content {
        background: #F1F3F4;
        color: var(--text-primary);
        border-bottom-left-radius: 4px;
    }
    
    .message-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 6px;
        width: 100%;
    }
    
    .message-copy-btn {
        font-size: 12px;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s var(--animation-curve);
    }
    
    .message-copy-btn:hover {
        background-color: var(--surface-color);
        color: var(--primary-color);
    }
    
    .message-model {
        font-size: 12px;
        color: var(--text-secondary);
        font-weight: 500;
    }
    
    .system-message {
        align-self: center;
        text-align: center;
        max-width: 80%;
        padding: 8px 16px;
        margin: 12px 0;
        background-color: rgba(26, 115, 232, 0.1);
        border-radius: 16px;
        color: var(--text-secondary);
        font-size: 13px;
        animation: fadeIn 0.5s var(--animation-curve);
    }
    
    .message-content h1, .message-content h2, .message-content h3 {
        margin: 0.6em 0;
        font-weight: 600;
    }
    
    .message-content h1 {
        font-size: 1.8em;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 6px;
    }
    
    .message-content h2 { font-size: 1.5em; }
    .message-content h3 { font-size: 1.3em; }
    
    .message-content p {
        margin-bottom: 0.75em;
    }
    
    .message-content p:last-child {
        margin-bottom: 0;
    }
    
    .message-content strong { font-weight: 600; }
    .message-content em { font-style: italic; }
    
    .message-content blockquote {
        border-left: 3px solid var(--border-color);
        padding-left: 12px;
        margin: 10px 0;
        color: var(--text-secondary);
    }
    
    .message-content ul, .message-content ol {
        margin: 10px 0;
        padding-left: 24px;
    }
    
    .message-content a {
        color: var(--primary-color);
        text-decoration: none;
    }
    
    .message-content a:hover {
        text-decoration: underline;
    }
    
    .math-inline {
        display: inline-block;
        font-family: KaTeX_Main, 'Times New Roman', serif;
    }
    
    .math-display {
        display: block;
        margin: 0.75em 0;
        overflow-x: auto;
        text-align: center;
        font-family: KaTeX_Main, 'Times New Roman', serif;
    }
    
    pre {
        position: relative;
        background: var(--code-bg);
        color: var(--code-text);
        font-family: 'JetBrains Mono', monospace;
        font-size: 14px;
        line-height: 1.5;
        padding: 16px;
        border-radius: 0 0 6px 6px;
        margin: 0;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
        max-width: 100%;
        width: 100%;
    }
    
    code {
        font-family: 'JetBrains Mono', monospace;
        background-color: rgba(0, 0, 0, 0.05);
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 0.9em;
    }
    
    pre code {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        font-size: 1em;
        white-space: pre-wrap;
        word-wrap: break-word;
        max-width: 100%;
        width: 100%;
    }
    
    .code-block {
        position: relative;
        margin: 12px 0;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        max-width: 100%;
        width: 100%;
    }
    
    .code-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background-color: var(--code-header-bg);
        color: var(--code-text);
        font-size: 13px;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 500;
        border-radius: 6px 6px 0 0;
        position: sticky;
        top: 0;
        z-index: 5;
    }
    
    .code-language {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #E5C07B;
    }
    
    .code-btn-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .preview-btn, .code-copy-btn {
        background: transparent;
        border: none;
        color: #ABB2BF;
        padding: 4px 8px;
        font-size: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        opacity: 1;
    }
    
    .preview-btn:hover, .code-copy-btn:hover {
        color: white;
    }
    
    .floating-copy-btn {
        position: absolute;
        right: 10px;
        top: 10px;
        background-color: var(--code-header-bg);
        color: #ABB2BF;
        border: none;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 10;
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }
    
    .floating-copy-btn:hover {
        opacity: 1;
        color: white;
    }
    
    .typing {
        align-self: flex-start;
        margin-bottom: 24px;
        animation: slideInLeft 0.3s var(--animation-curve);
    }
    
    .typing-container {
        position: relative;
        width: 60px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .typing-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
        background-color: var(--primary-color);
        border-radius: 50%;
        opacity: 0.6;
    }
    
    .typing-dot:nth-child(1) {
        animation: typingAnimation 1.5s infinite 0s;
    }
    
    .typing-dot:nth-child(2) {
        animation: typingAnimation 1.5s infinite 0.25s;
    }
    
    .typing-dot:nth-child(3) {
        animation: typingAnimation 1.5s infinite 0.5s;
    }
    
    @keyframes typingAnimation {
        0%, 60%, 100% {
            transform: translateY(0);
        }
        30% {
            transform: translateY(-10px);
        }
    }
    
    .input-area {
        padding: 16px 12px;
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--background-color);
        border-top: 1px solid var(--border-color);
        z-index: 10;
        position: relative;
        width: 100%;
    }
    
    .message-input-container {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        background: #F1F3F4;
        border-radius: 24px;
        padding: 8px 8px 8px 16px;
        transition: all 0.2s var(--animation-curve);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        height: 48px;
    }
    
    .message-input-container:focus-within {
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
        background: #FFFFFF;
        border: 1px solid var(--primary-color);
    }
    
    .message-input {
        flex: 1;
        border: none;
        outline: none;
        padding: 8px 0;
        font-size: 16px;
        background: transparent;
        color: var(--text-primary);
    }
    
    .message-input::placeholder {
        color: var(--text-secondary);
    }
    
    .attachment-btn {
        color: var(--text-secondary);
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        margin-right: 4px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        transition: all 0.2s var(--animation-curve);
        width: 32px;
        height: 32px;
    }
    
    .attachment-btn:hover {
        background-color: rgba(60, 64, 67, 0.08);
        color: var(--primary-color);
    }
    
    .send-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 14px;
        font-weight: 600;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        height: 48px;
        width: 48px;
        cursor: pointer;
        transition: all 0.2s var(--animation-curve);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        position: relative;
        align-self: center;
        margin-left: 12px;
    }
    
    .send-btn:hover {
        background-color: var(--hover-color);
    }
    
    .send-btn:active {
        background-color: var(--active-color);
    }
    
    .send-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .search-container {
        padding: 8px;
    }
    
    .search-input-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        background-color: var(--surface-color);
        border-radius: 8px;
        border: 1px solid var(--border-color);
        transition: all 0.2s var(--animation-curve);
    }
    
    .search-input-container:focus-within {
        border-color: var(--primary-color);
    }
    
    .search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px 0 12px;
        color: var(--text-secondary);
    }
    
    .search-input {
        flex: 1;
        height: 36px;
        padding: 0 12px 0 0;
        border: none;
        background: transparent;
        font-size: 14px;
        color: var(--text-primary);
        outline: none;
        width: 100%;
    }
    
    .search-input::placeholder {
        color: var(--text-secondary);
    }
    
    .file-input {
        display: none;
    }
    
    .attachments-preview {
        display: flex;
        gap: 10px;
        padding: 16px;
        overflow-x: auto;
        max-width: 100%;
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        border-top: 1px solid var(--border-color);
        display: none;
        animation: slideUp 0.2s var(--animation-curve);
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .attachment-item {
        position: relative;
        width: 80px;
        height: 80px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        animation: fadeIn 0.3s var(--animation-curve);
    }
    
    .attachment-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.2s var(--animation-curve);
    }
    
    .attachment-img:hover {
        transform: scale(1.05);
    }
    
    .remove-attachment {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        cursor: pointer;
        border: none;
        transition: all 0.2s var(--animation-curve);
    }
    
    .remove-attachment:hover {
        background: var(--error-color);
        transform: scale(1.1);
    }
    
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--animation-curve);
        backdrop-filter: blur(3px);
    }
    
    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .settings-modal {
        background-color: var(--background-color);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        width: 90%;
        max-width: 450px;
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(20px) scale(0.95);
        opacity: 0;
        transition: all 0.3s var(--animation-curve);
    }
    
    .modal-overlay.active .settings-modal {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .modal-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .modal-close {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 24px;
        cursor: pointer;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .settings-section {
        margin-bottom: 24px;
    }
    
    .settings-section:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 16px;
    }
    
    .model-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .model-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s var(--animation-curve);
    }
    
    .model-option:hover {
        background-color: var(--surface-color);
    }
    
    .model-radio {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid var(--text-secondary);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.2s var(--animation-curve);
        flex-shrink: 0;
    }
    
    .model-option.active .model-radio {
        border-color: var(--primary-color);
    }
    
    .model-option.active .model-radio:after {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--primary-color);
        animation: pulseIn 0.2s var(--animation-curve);
    }
    
    @keyframes pulseIn {
        0% { transform: scale(0); opacity: 0; }
        70% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    .model-info {
        flex: 1;
    }
    
    .model-name {
        font-size: 15px;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 4px;
    }
    
    .model-description {
        font-size: 13px;
        color: var(--text-secondary);
    }
    
    .model-tag {
        background-color: rgba(26, 115, 232, 0.1);
        color: var(--primary-color);
        font-size: 12px;
        font-weight: 500;
        padding: 3px 8px;
        border-radius: 12px;
        margin-left: 8px;
    }
    
    .modal-footer {
        padding: 16px 24px;
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    .modal-btn {
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s var(--animation-curve);
    }
    
    .btn-cancel {
        background-color: transparent;
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
    }
    
    .btn-cancel:hover {
        background-color: var(--surface-color);
        color: var(--text-primary);
        border-color: var(--text-secondary);
    }
    
    .btn-apply {
        background-color: var(--primary-color);
        color: white;
        border: none;
        box-shadow: 0 1px 2px rgba(26, 115, 232, 0.4);
    }
    
    .btn-apply:hover {
        background-color: var(--hover-color);
        box-shadow: 0 2px 5px rgba(26, 115, 232, 0.5);
        transform: translateY(-1px);
    }
    
    .btn-apply:active {
        background-color: var(--active-color);
        transform: translateY(0);
    }
    
    .lightbox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }
    
    .lightbox.active {
        opacity: 1;
        visibility: visible;
    }
    
    .lightbox-img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 5px;
        animation: fadeIn 0.3s var(--animation-curve);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    }
    
    .lightbox-close {
        position: absolute;
        top: 24px;
        right: 24px;
        color: white;
        font-size: 20px;
        cursor: pointer;
        background: none;
        border: none;
        width: 48px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.2s var(--animation-curve);
    }
    
    .lightbox-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .backdrop-circle {
        position: absolute;
        border-radius: 50%;
        background: linear-gradient(145deg, rgba(26, 115, 232, 0.05), rgba(26, 115, 232, 0.1));
        z-index: -1;
        animation: floatAnimation 20s infinite alternate var(--animation-curve);
    }
    
    .circle-1 {
        width: 300px;
        height: 300px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
        bottom: 15%;
        right: 5%;
        animation-delay: 5s;
    }
    
    .circle-3 {
        width: 150px;
        height: 150px;
        bottom: 30%;
        left: 20%;
        animation-delay: 10s;
    }
    
    @keyframes floatAnimation {
        0% {
            transform: translate(0, 0) scale(1);
        }
        50% {
            transform: translate(40px, 20px) scale(1.1);
        }
        100% {
            transform: translate(-20px, -40px) scale(0.9);
        }
    }
    
    .tooltip {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s var(--animation-curve);
        z-index: 100;
    }
    
    .tooltip.show {
        opacity: 1;
    }
    
    .lang-icon {
        color: #E5C07B;
    }
    
    .error-msg {
        color: var(--error-color);
        font-size: 14px;
        margin-top: 8px;
        text-align: center;
        animation: fadeIn 0.3s var(--animation-curve);
    }
    
    .preview-panel {
        width: var(--preview-width);
        height: 100vh;
        border-left: 1px solid var(--border-color);
        background-color: var(--background-color);
        transition: width 0.3s var(--animation-curve);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .preview-header {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .preview-title {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
    }
    
    .preview-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .preview-copy-btn,
    .preview-reload-btn,
    .preview-close-btn {
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.2s var(--animation-curve);
    }
    
    .preview-copy-btn:hover,
    .preview-reload-btn:hover,
    .preview-close-btn:hover {
        color: var(--primary-color);
    }
    
    /* Additional styles to ensure download button has the same hover effect */
    .preview-download-btn {
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.2s var(--animation-curve);
    }
    
    .preview-download-btn:hover {
        color: var(--primary-color);
    }
    
    .preview-iframe-container {
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    
    .preview-iframe {
        width: 100%;
        height: 100%;
        border: none;
        background-color: white;
        pointer-events: auto;
    }
    
    .grecaptcha-badge {
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    @media (max-width: 768px) {
        .message {
            max-width: 90%;
        }
        
        .welcome-container {
            padding: 20px;
        }
        
        .welcome-heading {
            font-size: 24px;
        }
        
        .backdrop-circle {
            opacity: 0.5;
        }
        
        .header {
            padding: 12px 16px;
        }
        
        pre {
            font-size: 12px;
        }
        
        .settings-modal {
            width: 95%;
        }
        
        .sidebar {
            width: 100%;
            max-width: 300px;
        }
        
        .preview-panel {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            z-index: 999;
        }
        
        .container.with-preview {
            width: 100%;
        }
    }