/* ==================== 
   全局样式 (Global Styles)
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(41, 128, 185, 0.1) !important;
    background-attachment: fixed !important;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: rgba(41, 128, 185, 0.95);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.context-section {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
    margin-bottom: 30px;
}

.table-container {
    overflow-x: auto;
}

/* ==================== 
   Button Base Styles
   ==================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: rgba(41, 128, 185, 0.95);
}

.btn-primary:hover {
    background-color: rgba(41, 128, 185);
}

.btn-danger {
    background-color: #95a5a6;
}

.btn-danger:hover {
    background-color: #7f8c8d;
}

/* ==================== 
   头部导航
   ==================== */
.page-header {
    background: linear-gradient(90deg, #1a3a5c, #2c3e50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.header-logo:hover {
    color: #f1f1f1 !important;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    display: inline-flex;   
    align-items: center; 
    justify-content: center;
    min-width: 80px;
    padding: 8px 20px;
    font-weight: 500;
    margin-left: 15px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.85;
    text-decoration: none;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* ==================== 
   主要内容区域
   ==================== */
.main-content {
    flex: 1;
    padding-top: 20px;
}

/* ==================== 
   首页样式
   ==================== */
.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.home-description {
    color: #888;
    font-size: 1.05rem;
    text-align: center;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* 首页功能入口 */
.home-nav-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.home-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

.home-nav-item:hover {
    color: rgba(41, 128, 185, 0.95);
    text-decoration: none;
    transform: translateY(-3px);
}

.home-nav-item svg {
    width: 36px;
    height: 36px;
}

.home-nav-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== 
   搜索区域样式
   ==================== */
.search-container {
    width: 100%;
    max-width: 800px;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    display: flex;
    align-items: stretch;
    background-color: transparent;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.search-field-select {
    flex-shrink: 0;
}

.field-select {
    height: 100%;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.field-select:focus {
    background-color: #e0e5e7;
}

.search-input-wrapper {
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-button-wrapper {
    flex-shrink: 0;
}

.search-button {
    height: 100%;
    padding: 15px 30px;
}

/* text content */
.text-content {
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 15px;
}

.text-content h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 25px 0 10px 0;
}

.text-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.text-content li {
    margin-bottom: 8px;
}

/* ==================== 
   页面容器（非首页）
   ==================== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #2c3e50;
  margin: 20px 0 30px;
}

/* ==================== 
   Three Line Table & Results Table
   ==================== */
.three-line-table,
.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.three-line-table {
    margin: 0 0 20px 0;
}

.three-line-table thead,
.results-table thead {
    border-top: 2px solid #333;
    border-bottom: 1px solid #333;
}

.three-line-table thead th,
.results-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.three-line-table tbody,
.results-table tbody {
    border-bottom: 2px solid #333;
}

.three-line-table tbody td,
.results-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.three-line-table tbody td {
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 200px;
}

.three-line-table tbody tr:last-child td,
.results-table tbody tr:last-child td {
    border-bottom: none;
}

.three-line-table tbody tr:hover,
.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ==================== 
   Hierarchical Table
   ==================== */
   .hierarchical-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-bottom: 2px solid #000; 
}

.hierarchical-table thead {
    border-top: 2px solid #000;
}

.hierarchical-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #000;
}

.hierarchical-table td {
    padding: 10px 15px;
}

.hierarchical-table thead th,
.hierarchical-table .category-row {
    font-weight: bold;
}

.hierarchical-table .subtype-row1 td:first-child {
    padding-left: 40px; /* 调整此数值控制缩进深度 */
    text-transform: none; /* 如果需要强制小写可改为 lowercase */
    font-weight: normal;
}

.hierarchical-table .subtype-row2 td:first-child {
    padding-left: 60px; /* 调整此数值控制缩进深度 */
    text-transform: none; /* 如果需要强制小写可改为 lowercase */
    font-weight: normal;
}

.hierarchical-table .subtype-row3 td:first-child {
    padding-left: 80px; /* 调整此数值控制缩进深度 */
    text-transform: none; /* 如果需要强制小写可改为 lowercase */
    font-weight: normal;
}

.hierarchical-table tr, 
.hierarchical-table td {
    background-color: transparent !important;
}

/* ==================== 
   Search Page
   ==================== */
.results-table {
    min-width: 600px;
}

.mutation-link {
    font-weight: 500;
}

.no-results {
    background-color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
}

/* ==================== 
   分页样式
   ==================== */
.pagination-info {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.pagination-info p {
    margin-bottom: 15px;
    color: #666;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
}

.current-page {
    padding: 8px 16px;
    background-color: #ecf0f1;
    border-radius: 4px;
    font-weight: 600;
}

/* ==================== 
   详情页样式
   ==================== */

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    padding: 10px 15px;
    background-color: transparent !important;
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.info-value {
    color: #333;
}

.citation-table-container td:nth-child(2),
.citation-table-container th:nth-child(2) {
    white-space: nowrap; 
}

.citation-table {
    table-layout: auto;
    width: 100%;
}

.citation-table thead th:nth-child(1),
.citation-table tbody td:nth-child(1) {
    width: 100px;
    min-width: 100px;
}

.citation-table thead th:nth-child(2),
.citation-table tbody td:nth-child(2) {
    width: 120px;
    min-width: 120px;
}

.citation-table thead th:nth-child(3),
.citation-table tbody td:nth-child(3) {
    min-width: 300px;
    max-width: 600px;
}

.vcf-table {
    min-width: 800px;
}

/* ==================== 
   页脚样式
   ==================== */
.footer {
    background: linear-gradient(90deg, #1a3a5c, #2c3e50);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* ==================== 
   响应式设计
   ==================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .field-select {
        width: 100%;
        min-width: auto;
    }
    
    .search-button {
        width: 100%;
    }
    
    .page-title {
        font-size: 1.05rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 
   Feedback Section
   ==================== */
.feedback-section {
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.feedback-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px; /* Increased gap */
    margin-bottom: 20px;
}

.feedback-btn {
    background: none;
    border: none; /* Remove border */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: #666;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    color: #333;
    transform: scale(1.1);
}

.feedback-btn svg {
    fill: none; /* Default no fill */
    transition: fill 0.2s ease;
}

.feedback-btn.active svg {
    fill: black; /* Active state fill */
}

.error-report-form {
    margin-top: 20px;
    width: 100%;
}

.error-report-form textarea {
    width: 100%; /* Full width */
    min-height: 120px;
    padding: 15px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    background-color: transparent;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
    display: block;
}

.error-report-form textarea:focus {
    border-color: rgba(52, 152, 219, 0.7);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end; /* Align right */
    align-items: center;
}

.submit-btn {
    padding: 10px 25px;
}

.submit-message {
    margin-right: 15px;
    font-size: 0.9rem;
}

.submit-message.success {
    color: #27ae60;
}

.submit-message.error {
    color: #e74c3c;
}

/* ==================== 
   Advanced Search Link (Index Page)
   ==================== */
.advanced-link {
    margin-top: 15px;
    text-align: left;
}

.advanced-link a {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== 
   Advanced Search Page Styles
   ==================== */
.advanced-search-builder {
    width: 100%;
    max-width: 100%;
}

.instruction-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.term-input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
}

.field-select-wrapper {
    flex-shrink: 0;
}

.advanced-field-select {
    height: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 4px;
    background-color: transparent;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    box-shadow: none !important;
}

.advanced-field-select:focus {
    border-color: rgba(52, 152, 219, 0.7);
    box-shadow: none !important;
}

.term-input-wrapper {
    flex: 1;
}

.term-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 4px;
    background-color: transparent;
    font-size: 1rem;
    outline: none;
    box-shadow: none !important;
}

.term-input:focus {
    border-color: rgba(52, 152, 219, 0.7);
    box-shadow: none !important;
}

.term-input::placeholder {
    color: #999;
}

.add-button-wrapper {
    position: relative;
    flex-shrink: 0;
}

.add-button {
    height: 100%;
    padding: 12px 25px;
    font-size: 1rem;
}

.add-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    min-width: 150px;
}

.add-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item:first-child {
    border-radius: 4px 4px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 4px 4px;
}

.query-box-wrapper {
    margin-bottom: 20px;
}

.query-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.query-box {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    background-color: transparent;
    color: #333;
    box-shadow: none !important;
}

.query-box:focus {
    outline: none;
    border-color: rgba(52, 152, 219, 0.7);
    box-shadow: none !important;
}

.clear-button {
    padding: 12px 40px;
    font-size: 1.1rem;
}

.search-button-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.advanced-search-button {
    padding: 12px 40px;
    font-size: 1.1rem;
}

/* ==================== 
   统一样式的文本框 (Unified Textboxes)
   ==================== */
input[type="text"]:not(.search-input):not(.term-input),
textarea:not(.query-box),
select:not(.field-select):not(.search-input):not(.advanced-field-select):not(.term-input),
.search-wrapper {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
    border-radius: 12px !important; /* 加大圆角 */
    padding: 16px 22px !important; /* 增加内边距 */
    box-shadow: none !important; /* 默认全部去掉阴影 */
    outline: none !important;
    transition: all 0.3s ease !important;
    font-size: 1.05rem !important;
    color: #333 !important;
}

input[type="text"]:not(.search-input):not(.term-input):focus,
textarea:not(.query-box):focus,
select:not(.field-select):not(.search-input):not(.advanced-field-select):not(.term-input):focus,
.search-wrapper:focus-within {
    border-color: rgba(52, 152, 219, 0.7) !important;
    box-shadow: none !important; /* 默认全部去掉聚焦阴影 */
    background-color: #ffffff !important;
}

/* 仅在首页里保留阴影效果 */
.home-container input[type="text"]:not(.search-input):not(.term-input),
.home-container textarea:not(.query-box),
.home-container select:not(.field-select):not(.search-input):not(.advanced-field-select):not(.term-input),
.home-container .search-wrapper {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15) !important;
}

.home-container input[type="text"]:not(.search-input):not(.term-input):focus,
.home-container textarea:not(.query-box):focus,
.home-container select:not(.field-select):not(.search-input):not(.advanced-field-select):not(.term-input):focus,
.home-container .search-wrapper:focus-within {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3) !important;
}

/* 防止 search-wrapper 内的元素重复出现内外边距和边框 */
.search-wrapper {
    padding: 0 !important; 
}
.search-input, 
.field-select {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
}

/* ==================== 
   Extract Page Styles
   ==================== */
.extract-form {
    margin-bottom: 30px;
}

.extract-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    background-color: transparent;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.extract-textarea:focus {
    outline: none;
    border-color: rgba(52, 152, 219, 0.7);
    box-shadow: none !important;
}

.submit-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.results-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.results-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.results-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.results-content.no-results {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.results-table {
    margin-top: 10px;
}

/* ==================== 
   Statistics Page Styles
   ==================== */
.category-name {
    color: #2c3e50;
}

/* ==================== 
   Chat Page Styles
   ==================== */
.chat-title {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}
.chat-title h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}
.chat-container.initial-chat {
    justify-content: center;
    align-items: center;
    background: transparent;
    box-shadow: none;
}
.chat-container.initial-chat .chat-title {
    display: block;
}
.chat-container.initial-chat .chat-history {
    display: none;
}
.chat-container.initial-chat .input-row {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    bottom: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.chat-container.initial-chat #clear-chat-btn {
    display: none;
}
.chat-container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: calc(100vh - 160px); /* 确保没有内容时，容器能撑开高度，让输入框位于底部 */
}
.chat-history {
    flex: 1;
    margin-bottom: 20px;
}
.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}
.user-message {
    align-self: flex-end;
    background: rgba(41, 128, 185, 0.1);
    color: #222;
    border: 1px solid #2c3e50;
    border-radius: 16px 16px 4px 16px;
    padding: 12px 20px;
    max-width: 80%;
    box-shadow: 0 1px 4px rgba(24,144,255,0.08); /* changed back to border-radius for right align */
    font-size: 1.05rem;
    word-break: break-word;
    white-space: pre-wrap;
}
.model-message-wrapper {
    align-self: flex-start;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}
.reasoning-box {
    background: #f8f9fa;
    color: #666;
    font-size: 0.9em;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    white-space: pre-wrap;
    display: none;
    box-sizing: border-box;
    align-self: flex-start;
}
.model-message {
    background: none;
    color: #333;
    padding: 10px 0; /* 移除外边距和背景，无文本框包裹感 */
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-y: hidden;
}
.model-message pre {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.model-message code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.92em;
}
.model-message pre code {
    background: none;
    padding: 0;
}
.model-message p {
    margin: 0.5em 0;
}
.model-message ul, .model-message ol {
    margin: 0.5em 0 0.5em 1.5em;
}
.model-message table {
    border-collapse: collapse;
    margin: 0.5em 0;
}
.model-message th, .model-message td {
    border: 1px solid #ddd;
    padding: 6px 12px;
}
.model-message blockquote {
    border-left: 3px solid #ccc;
    padding-left: 12px;
    color: #666;
    margin: 0.5em 0;
}
.input-row {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08); /* 向上呈现轻微阴影，更具立体感 */
    margin-top: auto;
    align-items: flex-end;
}
#chat-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1.05rem;
    outline: none;
    background-color: #fff;
    resize: none;
    line-height: 1.5;
    max-height: 150px;
    font-family: inherit;
    overflow-y: auto;
}
#chat-input:focus {
    border-color: rgba(52, 152, 219, 0.7);
}
#send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #2c3e50;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
#send-btn:hover {
    background: #1a252f;
}
#send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
#clear-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
#clear-chat-btn:hover {
    background: #f1f1f1;
    color: #e74c3c;
    border-color: #ccc;
}