@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Apple Design System Colors */
    --system-gray-1: #8e8e93;
    --system-gray-2: #aeaeb2;
    --system-gray-3: #c7c7cc;
    --system-gray-4: #d1d1d6;
    --system-gray-5: #e5e5ea;
    --system-gray-6: #f2f2f7;

    --system-blue: #0071e3;
    --system-green: #34c759;
    --system-indigo: #5856d6;
    --system-teal: #30b0c7;

    /* Frogent Brand Colors */
    --primary-gradient: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    /* Deep Teal to Blue */
    --primary-shadow: rgba(2, 132, 199, 0.3);

    /* Apple VisionOS Liquid Glass Variables */
    --glass-bg: rgba(240, 240, 240, 0.6);
    /* Luminous, semi-transparent material */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner rim light */
    --glass-blur: blur(50px) saturate(180%);
    /* Vibrant blur */
    --input-bg: rgba(0, 0, 0, 0.05);
    /* Slight darkening 'cutout' effect */
    --input-focus-bg: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('/uploads/assets/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #1d1d1f;
    overflow: hidden;
    /* Prevent scrolling */
}

/* =========================================
   Glass Card Container (Shared)
   ========================================= */
.login-page,
.register-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* Display is handled individually to control initial state */
    align-items: center;
    justify-content: center;
    padding-bottom: 20vh;
    /* Shift layout up */
    backdrop-filter: blur(5px);
    /* Subtle blur on the background image itself if needed, or remove */
    /* background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0%, rgba(0,0,0,0.1) 100%); Optional viganette */
}

.login-page {
    display: flex;
}

.register-page {
    display: none;
}

/* Ensure hidden pages are actually hidden */
.login-page[style*="display: none"],
.register-page[style*="display: none"] {
    display: none !important;
}

.login-container,
.register-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Header Section
   ========================================= */
.login-header,
.register-header {
    margin-bottom: 1.5rem;
    /* Tightened spacing */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 0.8s ease-out;
}

/* =========================================
   Brand Header (Row Layout)
   ========================================= */
.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Tighter gap for cohesion */
    margin-bottom: 0.25rem;
    /* Reduced bottom margin */
}

.login-logo,
.register-logo {
    width: 54px;
    /* Balanced with text height */
    height: 54px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo:hover,
.register-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.login-logo img,
.register-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-row h1 {
    font-family: "Outfit", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #000000;
    background: none;
    text-shadow: none;
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1;
    position: relative;
    top: 2px;
    /* Visual optical alignment: shift down to match frog body */
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);
    /* Lighter for hierarchy */
    letter-spacing: normal;
    max-width: 600px;
    text-shadow: none;
    margin-top: 0.4rem;
}

/* =========================================
   Glass Card Content
   ========================================= */
.login-content,
.register-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;
    /* Slightly reduced roundness */
    padding: 3rem 3rem 2rem 3rem;
    /* Reduced bottom padding */
    width: 100%;
    max-width: 440px;
    box-shadow: var(--glass-shadow);
    /* Subtle white border for the edge light */
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}





/* =========================================
   Form Elements (Cutout Style)
   ========================================= */
.login-form-group,
.register-form-group {
    margin-bottom: 1.25rem;
}



.login-form-group input,
.register-form-group input {
    width: 100%;
    height: 50px;
    /* Taller touch targets */
    padding: 0 20px;
    font-size: 1.05rem;
    color: #000000;
    /* Darkening background for contrast on glass */
    background: rgba(120, 120, 128, 0.08);
    border: none;
    border-radius: 25px;
    /* Full pill shape inputs */
    transition: all 0.2s ease;
}

.login-form-group input:focus,
.register-form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px var(--system-blue);
    transform: scale(1.0);
}

.login-form-group input::placeholder,
.register-form-group input::placeholder {
    color: rgba(60, 60, 67, 0.5);
}

/* =========================================
   Buttons & Links
   ========================================= */
.login-btn,
.register-btn {
    width: 100%;
    height: 50px;
    margin-top: 1.5rem;
    background: #000000;
    /* Solid Black */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    font-size: 1.1rem;
    /* Larger font size */
    font-weight: 600;
    /* Bolder text */
    letter-spacing: 0.01em;
    /* Slight spacing for emphasis */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle rim */
    border-radius: 25px;
    /* Pill */
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn::before,
.register-btn::before {
    display: none;
}

/* Remove gradient override */
.login-btn,
.register-btn {
    background: #000000;
}

.login-btn:hover,
.register-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    /* Subtle transparency on hover */
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
    box-shadow: none;
}

.login-btn:active,
.register-btn:active {
    transform: none;
    filter: brightness(0.9);
}

.secondary-action {
    margin-top: 1.1rem;
    /* Aggressively reduced spacing */
    margin-bottom: 0;
    text-align: center;
    font-size: 0.95rem;
    color: #86868b;
}

.secondary-action a {
    color: var(--system-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.secondary-action a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* =========================================
   Messages
   ========================================= */
.login-message,
.login-error-message,
.register-error-message {
    padding: 12px 16px;
    /* More compact */
    border-radius: 12px;
    /* Subtle rounded corners, not full pill */
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: none;
    /* Controlled by JS */
    animation: slideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    /* Flat minimalist look */
}

.login-message {
    background: rgba(52, 199, 89, 0.15);
    /* System Green Tint */
    color: #1a632e;
    border: 1px solid rgba(52, 199, 89, 0.3);
    box-shadow:
        0 4px 15px rgba(52, 199, 89, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-message::before {
    content: "✓";
    display: inline-block;
    margin-right: 8px;
    font-weight: 800;
    color: #34c759;
}

.login-error-message,
.register-error-message {
    background: rgba(255, 69, 58, 0.08);
    /* Very subtle red fill */
    color: #ff3b30;
    /* System Red for text */
    border: 1px solid rgba(255, 69, 58, 0.2);
    /* Delicate border */
}

.login-error-message::before,
.register-error-message::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    font-weight: 800;
    vertical-align: text-top;
    margin-right: 8px;
    /* Added spacing */
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3);
}



/* =========================================
   Animations
   ========================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Footer Overlay
   ========================================= */
.disclaimer {
    position: absolute;
    /* Fixed at bottom */
    bottom: 1rem;
    width: 100%;
    text-align: center;
    color: rgba(0, 0, 0, 0.3);
    /* Lighter text */
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    /* Optional: glass pill for footer to ensure readability if bg varies */
    pointer-events: none;
}

/* 聊天页面样式 */
.chat-container {
    display: none;
    width: 100vw;
    height: 100vh;
    background: white;
}

.chat-layout {
    display: flex;
    height: 100vh;
}

/* 侧边栏历史消息 */
.sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 14px 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #e9ecef;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.history-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.history-item:hover {
    background: #e9ecef;
}

.history-item.active {
    background: #2b6cb0;
    color: white;
}

.history-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-preview {
    font-size: 0.8rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item.active .history-preview {
    color: rgba(255, 255, 255, 0.8);
}

/* 主聊天区域 */
.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

/* 顶部导航栏 */
.top-nav {
    background: white;
    border-bottom: 2px solid #e9ecef;
    padding: 11px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle-main {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-toggle-main:hover {
    background: #f8f9fa;
}

.nav-bottom {
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #2c5282, #2b6cb0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-avatar img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.logout-btn {
    padding: 6px 12px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.chat-content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    /* Prevent content from overflowing */
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafbfc;
}

.message {
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: linear-gradient(45deg, #2c5282, #2b6cb0);
    color: white;
}

.message.bot .message-avatar {
    background: #e9ecef;
}

.message-content {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user .message-content {
    background: linear-gradient(45deg, #2c5282, #2b6cb0);
    color: white;
    border-bottom-right-radius: 6px;
}

.message.user .message-content em {
    font-style: italic;
    color: bisque;
    font-size: 0.8rem;
}

.message.bot .message-content {
    background: white;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 6px;
    color: #333;
}

.typing-indicator {
    display: none;
    padding: 12px 18px;
    color: #666;
    font-style: italic;
}

/* 输入区域 */
.chat-input {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    max-height: 120px;
}

.message-input:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(45deg, #2c5282, #2b6cb0);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        z-index: 1000;
        height: 100%;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .user-info span {
        display: none;
    }

    .chat-messages {
        padding: 15px;
    }

    .message-content {
        max-width: 85%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 新建聊天按钮 */
.new-chat-btn {
    margin: 15px;
    padding: 10px 15px;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.new-chat-btn:hover {
    background: #5a6fd8;
}

/* 流式输出光标动画 */
.streaming-cursor {
    animation: blink 1s infinite;
    color: #000000;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* 确保消息内容平滑滚动 */
.chat-messages {
    scroll-behavior: smooth;
}

/* 流式消息特殊样式 */
.message.streaming .message-content {
    border-bottom: 2px solid rgba(125, 127, 132, 0.3);
    transition: all 0.1s ease;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.scheduled {
    background: #ffc107;
    color: #212529;
}

.status-badge.completed {
    background: #28a745;
    color: white;
}

.status-badge.cancelled {
    background: #dc3545;
    color: white;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.message-content {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* 为 markdown 内容添加特殊样式 */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin: 8px 0 4px 0;
    font-weight: 600;
}

.message-content h1 {
    font-size: 1.3em;
}

.message-content h2 {
    font-size: 1.2em;
}

.message-content h3 {
    font-size: 1.1em;
}

.message-content h4 {
    font-size: 1.05em;
}

.message-content strong {
    font-weight: 600;
    color: inherit;
}

.message-content em {
    font-style: italic;
}

.message-content ul,
.message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 2px 0;
}

.message-content p {
    margin: 6px 0;
}

.message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
}

.message-content pre code {
    background: none;
    padding: 0;
}

.message-content blockquote {
    border-left: 3px solid #ccc;
    margin: 8px 0;
    padding-left: 12px;
    color: #666;
    font-style: italic;
}

/* 为用户消息中的 markdown 元素提供对比色 */
.message.user .message-content code {
    background: rgba(255, 255, 255, 0.2);
}

.message.user .message-content pre {
    background: rgba(255, 255, 255, 0.15);
}

.message.user .message-content blockquote {
    border-left-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* 为 bot 消息中的表格添加样式 */
.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
    font-size: 0.9em;
}

.message-content th,
.message-content td {
    border: 1px solid #ddd;
    padding: 4px 8px;
    text-align: left;
}

.message-content th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* 聊天内容包装器 */
.chat-content-wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    transition: all 0.3s ease;
}

/* 分子结构面板样式 */
.molecular-panel {
    width: 400px;
    background: white;
    border-left: 1px solid #e9ecef;
    flex-direction: column;
    transition: all 0.3s ease;
}

.molecular-panel.collapsed {
    width: 0;
    overflow: hidden;
}

.molecular-panel-header {
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.molecular-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.close-molecular-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.close-molecular-panel:hover {
    background: #e9ecef;
}

.molecular-panel-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.molecular-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.molecular-info h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #333;
}

.molecular-info p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .molecular-panel {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .molecular-panel {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 90%;
        z-index: 1001;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
}

/* 控制按钮 */
.molecular-controls {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
}

.control-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

/* 调整大小手柄 */
.resize-handle {
    width: 2px;
    background: #e9ecef;
    cursor: col-resize;
    position: relative;
    transition: background-color 0.2s ease;
}

.resize-handle:hover {
    background: #2b6cb0;
}

.resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 40px;
    background: transparent;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .molecular-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100vw;
        max-width: 100vw;
        z-index: 1001;
        border-left: none;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .resize-handle {
        display: none !important;
    }

    .chat-area {
        min-width: auto;
    }
}

/* 面板显示状态调整 */
.chat-content-wrapper.panel-open .chat-area {
    /* 当面板打开时，聊天区域可以调整 */
}

/* 分子文件列表样式 */
.file-list {
    margin: 10px 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 5px 10px;
    font-size: 0.8rem;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.controls .control-btn {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.8rem;
}