/* Portfolio Chat Styles */
.portfolio-chat-container {
    margin-bottom: 36px;
}

.chat-interface {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 1000px; /* Tăng gấp đôi chiều cao 500px -> 1000px */
    transition: all 0.3s ease;
}

.chat-interface:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chat-header {
    background-color: rgba(30, 41, 59, 0.95);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

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

.chat-badge {
    display: flex;
    gap: 6px;
}

.deep-search-badge {
    background: #9c27b0;
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

/* Botchat Floating Button - Left side (shows after report generation) */
.botchat-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f7931a, #e68309);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.botchat-floating-btn.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
    animation: bounce-in 0.6s ease;
}

.botchat-floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.6);
    background: linear-gradient(135deg, #e68309, #d67309);
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botchat Overlay - Left side */
.botchat-overlay {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 380px;
    height: 550px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.botchat-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.botchat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.botchat-header {
    background: linear-gradient(135deg, #f7931a, #e68309);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.botchat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.botchat-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.botchat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.botchat-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    margin-left: auto;
    transition: background 0.2s;
}

.botchat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.botchat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.welcome-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f7931a, #e68309);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.user-message {
    background: linear-gradient(135deg, #f7931a, #e68309);
    color: white;
    margin-left: auto;
    align-self: flex-end;
}

.botchat-input-area {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
}

.quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-btn:hover {
    background: #f7931a;
    color: white;
    border-color: #f7931a;
}

.input-container {
    display: flex;
    align-items: end;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 12px;
}

.botchat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-size: 14px;
    color: #374151;
    min-height: 20px;
    max-height: 80px;
    font-family: inherit;
}

.botchat-input::placeholder {
    color: #9ca3af;
}

.send-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f7931a, #e68309);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Botchat Overlay */
.botchat-overlay {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 360px;
    height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.botchat-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.botchat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.botchat-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.botchat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.botchat-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.botchat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.botchat-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    margin-left: auto;
    transition: background 0.2s;
}

.botchat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.botchat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.welcome-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.user-message {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    margin-left: auto;
    align-self: flex-end;
}

.botchat-input-area {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
}

.quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.input-container {
    display: flex;
    align-items: end;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 12px;
}

.botchat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-size: 14px;
    color: #374151;
    min-height: 20px;
    max-height: 80px;
    font-family: inherit;
}

.botchat-input::placeholder {
    color: #9ca3af;
}

.send-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .botchat-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
        font-size: 20px;
    }

    .botchat-overlay {
        width: calc(100vw - 20px);
        height: 75vh;
        left: 10px;
        bottom: 80px;
    }

    .quick-actions {
        flex-direction: column;
        gap: 6px;
    }

    .quick-btn {
        justify-content: center;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .botchat-input-area {
        padding: 12px 16px;
    }
    
    .botchat-messages {
        padding: 16px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(156, 39, 176, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0);
    }
}

/* Chat Messages Styles */
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;

/* Styles cho chức năng tìm kiếm trong Portfolio Assistant */
.ai-mode-selector {
  display: flex;
  margin-bottom: 10px;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 3px;
  width: auto;
  align-self: center;
}

.mode-btn {
  border: none;
  padding: 8px 15px;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.mode-btn.active {
  background: #2196f3;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-interface {
  display: none;
  flex-direction: column;
  flex: 1;
}

.ai-interface.active {
  display: flex;
}

.search-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-container {
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 20px 0 0 20px;
  font-size: 16px;
}

.search-button {
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-button:hover {
  background: #0c7cd5;
}

.search-examples {
  font-size: 13px;
  color: #666;
}

.search-example-tag {
  display: inline-block;
  background: #e9f5fe;
  color: #2196f3;
  padding: 3px 8px;
  border-radius: 12px;
  margin: 0 3px;
  cursor: pointer;
}

.search-example-tag:hover {
  background: #d1eafd;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px;
  background: white;
  border-radius: 5px;
  margin-top: 10px;
}

.search-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #aaa;
  gap: 10px;
}

.search-result {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result-content {
  font-size: 15px;
  line-height: 1.6;
}

.search-result-content a {
  color: #2196f3;
  text-decoration: none;
}

.search-result-content a:hover {
  text-decoration: underline;
}

.search-result-citation {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

.search-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.search-loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

.chat-message.system-message {
    align-self: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    max-width: 90%;
}

.chat-message.user-message {
    align-self: flex-end;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.chat-message.ai-message {
    align-self: flex-start;
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message-content {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.message-content a {
    color: #60a5fa;
    text-decoration: underline;
    word-break: break-all;
}

.message-content a:hover {
    text-decoration: none;
}

.disclaimer-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* Typing Effect */
.typing-effect {
    display: inline;
    min-height: 1rem;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #60a5fa;
    animation: blink 0.8s infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Deep Search Indicator */
.deep-search-indicator {
    display: inline-block;
    background: rgba(156, 39, 176, 0.2);
    color: #c77dff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Animation */
.searching-animation {
    color: #60a5fa;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.search-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.search-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #9c27b0, #c77dff);
    border-radius: 4px;
    animation: progressAnimation 2s infinite;
}

@keyframes progressAnimation {
    0% { left: -30%; }
    100% { left: 100%; }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #60a5fa;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Input Styles */
.chat-input-container {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.chat-send-btn:active {
    transform: translateY(0);
}

.chat-send-btn i {
    font-size: 18px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .chat-message {
        max-width: 90%;
        padding: 10px 14px;
    }

    .message-content {
        font-size: 13px;
    }

    .chat-input-container {
        padding: 12px;
    }

    .chat-input {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 42px;
    }

    .chat-send-btn {
        width: 42px;
        height: 42px;
    }

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

    .chat-messages {
        padding: 12px;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.system-message {
    align-self: center;
    max-width: 95%;
}

.user-message {
    align-self: flex-end;
}

.ai-message {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.user-message .message-content {
    background-color: #3b82f6;
    color: #ffffff;
    border-top-right-radius: 0;
}

.ai-message .message-content {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-top-left-radius: 0;
}

.system-message .message-content {
    background-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-radius: 12px;
    text-align: center;
}

/* Deep Search Typing Effect */
.typing-effect {
    display: inline-block;
    color: #e0e0e0;
    white-space: pre-wrap;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background-color: #60a5fa;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.deep-search-indicator {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #9c27b0;
    font-weight: 600;
}

.deep-search-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9c27b0;
    margin-right: 5px;
    animation: pulse-small 2s infinite;
}

@keyframes pulse-small {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.searching-animation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9c27b0;
}

.search-progress {
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #673ab7);
    border-radius: 3px;
    width: 0%;
    animation: progress 2.5s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}


.loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background-color: #60a5fa;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(30, 41, 59, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.chat-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    height: 48px;
    max-height: 120px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #3b82f6;
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.disclaimer-note {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-interface {
        height: 400px;
    }

    .chat-message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .chat-interface {
        height: 350px;
    }

    .chat-header {
        padding: 14px 16px;
    }

    .chat-messages {
        padding: 14px;
    }

    .chat-input-container {
        padding: 12px;
    }
}

.value-column {
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #60a5fa;
    text-align: right;
}

.result-days-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #60a5fa;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .table-body {
        max-height: 200px;
    }

    .date-column, .value-column {
        font-size: 0.85rem;
    }

    .result-days-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-left: 8px;
    }
}