.chat-history-sidebar{
    position: absolute;
}
/* Input container artık chat.css'de tanımlı, override etmemize gerek yok */
.btn-buyingen-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
}
.bot-actions{
    display: none;
}
div.bot-message:nth-child(1) .message-footer {
    display: none;
}
.user-message .message-content {
    background-color: transparent !important;
}


.user-message {
    align-self: flex-end;
    background-color: transparent !important;
    color: var(--message-text);
    border: none;
    padding: 8px 0 !important;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bot-message {
    align-self: flex-start;
    background-color: transparent !important;
    color: var(--message-text);
    border: none;
    padding: 8px 0 !important;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Message avatars */
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.bot-message .message-avatar img{
    width: 150%;
    height: 100%;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar.bot-avatar {
    background-color: #e8f4fd;
}

.message-avatar.user-avatar {
    background-color: #10b981;
    color: white;
    font-weight: 600;
    font-size: 14px;
}
.message-footer .message-time{
    color: #ffffffb0 !important;
}

.message-wrapper {
    flex: 1;
    min-width: 0;
    background-color: var(--message-bg);
    border-radius: 12px;
    padding: 6px 15px;
}

.user-message .message-wrapper {
    background-color: var(--primary-color);
}

.bot-message .message-wrapper {
    border: 1px solid var(--border-color);
}
.user-message ,.bot-message{
    flex-direction: row;
}

/* Message truncation styles */
.message-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 6em;
    line-clamp: 4;
}

.message-content.expanded {
    display: block;
    max-height: none;
    overflow: visible;
}

.show-more-btn {
    background: none !important;
    border: none !important;
    color: #007bff !important;
    cursor: pointer !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    padding: 4px 0 !important;
    margin: 4px 0 !important;
    display: block !important;
    transition: color 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.show-more-btn:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Ensure show-more-btn appears above other buttons */
.message-wrapper .show-more-btn {
    margin-bottom: 8px !important;
    order: 1;
}

.message-wrapper .btn {
    order: 2;
}

/* Container for centering the related content button */
.related-content-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
}

/* Modern İlgili İçerik button styles */
.related-content-btn {
    background: linear-gradient(135deg, var(--primary-color, #28a745) 0%, #20c997 100%);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.related-content-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.related-content-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.related-content-btn:hover::before {
    left: 100%;
}

.related-content-btn:active {
    transform: translateY(-1px);
    transition: all 0.1s;
}

.related-content-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

/* Creator name styling */
.creator-name {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
    margin-right: 8px;
}

.creator-message-header {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
}

.creator-message-username {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.creator-message-username:hover {
    color: var(--primary-color, #28a745);
    text-decoration: none;
}

.user-message-header {
    padding-bottom: 4px;
}

.user-message-username {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
    opacity: 0.8;
}

[data-theme="dark"] .user-message-username {
    color: var(--dark-muted-text, #9ca3af);
}

[data-theme="dark"] .creator-name {
    color: #9ca3af;
}

[data-theme="dark"] .creator-message-header {
    border-bottom-color: var(--dark-border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .creator-message-username {
    color: var(--dark-muted-text, #9ca3af);
}

[data-theme="dark"] .creator-message-username:hover {
    color: var(--primary-color, #28a745);
}

.message-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.message-footer .creator-name:hover {
    color: var(--primary-color, #007bff);
    cursor: pointer;
}

/* Creator context menu styles - Project design compatible */
.creator-avatar-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px; /* Add padding to make hover area larger */
    margin: -5px; /* Negative margin to maintain visual positioning */
}

.creator-context-menu {
    position: absolute;
    background: var(--message-bg);
    border: 1px solid var(--border-color, #e1e5e9);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    width: 260px;
    display: none;
    bottom: 100%;
    right: -220px; /* Move to the right to avoid chat history overlap */
    margin-bottom: 10px;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.creator-context-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.creator-context-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px; /* Adjust arrow position since menu is moved right */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--message-bg);
}

.context-menu-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e1e5e9);
}

.context-menu-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--primary-color, #28a745);
    object-fit: cover;
}

.context-menu-avatar-fallback {
    background: #10b981;
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.context-menu-info {
    flex-grow: 1;
}

.context-menu-creator-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    margin: 0 0 4px 0;
}

.clickable-profile {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-profile:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.context-menu-creator-name.clickable-profile:hover {
    color: var(--primary-color, #28a745);
    transform: none;
}

.context-menu-username {
    font-size: 13px;
    color: var(--muted-text, #6c757d);
    margin: 0;
}

.context-menu-follow-btn {
    background: linear-gradient(135deg, var(--primary-color, #28a745) 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 8px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.25);
}

.context-menu-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.context-menu-follow-btn.following {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 3px 6px rgba(108, 117, 125, 0.25);
}

.context-menu-follow-btn.following:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

/* Dark theme support for context menu */
[data-theme="dark"] .creator-context-menu {
    background: var(--dark-message-bg, #1f2937);
    border-color: var(--dark-border-color, #374151);
    color: var(--dark-text-color, #f3f4f6);
}

[data-theme="dark"] .creator-context-menu::after {
    border-top-color: var(--dark-message-bg, #1f2937);
}

[data-theme="dark"] .context-menu-header {
    border-bottom-color: var(--dark-border-color, #374151);
}

[data-theme="dark"] .context-menu-creator-name {
    color: var(--dark-text-color, #f9fafb);
}

[data-theme="dark"] .context-menu-username {
    color: var(--dark-muted-text, #9ca3af);
}

[data-theme="dark"] .clickable-profile:hover {
    opacity: 0.8;
}

[data-theme="dark"] .context-menu-creator-name.clickable-profile:hover {
    color: var(--primary-color, #28a745);
}

.related-content-btn:hover i {
    transform: rotate(90deg);
}

/* Dark theme support for related content button */
[data-theme="dark"] .related-content-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 6px rgba(16, 185, 129, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .related-content-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.5);
}


/* Suggested chatbots styles */
.suggested-chatbots-section {
    border-left: 4px solid #dc3545;
    background: rgba(255, 0, 0, 0.01);
}

.suggested-chatbots-section .section-header {
    border-bottom-color: #dc3545;
}

.suggested-chatbots-section .section-header i {
    color: #dc3545;
}

.suggested-chatbots-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.suggested-chat-bubble-wrapper {
    position: relative;
    margin-bottom: 20px; /* Increased space for button */
}

.suggested-chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    padding-bottom: 20px; /* Extra padding at bottom for button */
    max-width: 90%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.suggested-chat-bubble:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.suggested-chat-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    overflow: hidden;
    position: relative;
}

.suggested-chat-content {
    flex: 1;
    min-width: 0;
    padding-right: 8px; /* Prevent text from touching right edge */
}

.suggested-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.suggested-chat-username {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.suggested-chat-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.suggested-chat-message {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 12px; /* Space before button area */
    word-wrap: break-word;
}

.suggested-chat-button {
    position: absolute;
    bottom: -4px;
    right: 16px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    z-index: 1;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.suggested-chat-button:hover {
    background: var(--primary-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.suggested-chat-button:active {
    transform: translateY(0);
}

/* Dark theme support */
[data-theme="dark"] .suggested-chat-bubble {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .suggested-chat-avatar {
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Sources footnote style */
.sources-footnote {
    margin-top: 8px;
    font-size: 12px;
    font-style: italic;
    color: var(--text-secondary, #6c757d);
}

/* Modal styles from dashboard */
.modal-content {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #d0d7de);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.chatbot-preview-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preview-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.preview-access-badge,
.preview-category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    backdrop-filter: blur(10px);
}

.preview-info {
    padding: 0 8px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #1f2328);
    margin: 0;
    flex: 1;
    margin-right: 16px;
}

.preview-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.preview-creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.preview-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-creator-name {
    font-size: 0.9rem;
    color: var(--text-secondary, #656d76);
    font-weight: 500;
}

.preview-description {
    margin-bottom: 24px;
}

.preview-description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color, #1f2328);
    margin: 0;
}

.preview-capabilities {
    margin-bottom: 24px;
}

.capabilities-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #656d76);
    margin-bottom: 8px;
}

.capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.capability-tag {
    padding: 4px 10px;
    background-color: var(--card-info-bar-bg, #f6f8fa);
    border: 1px solid var(--border-color, #d0d7de);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-color, #1f2328);
}

.preview-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color, #d0d7de);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary, #656d76);
}

.stat-item i {
    font-size: 1rem;
}

.modal-footer .btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
}

#summaryModeBtn {
color: var(--primary-color);
border-color: var(--primary-color);
}

#summaryModeBtn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.modal-footer .btn-primary {
    border-color: var(--primary-color);
}

.modal-footer .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.modal-footer .btn-outline-primary {
    font-size: 18px;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-footer .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    color: white;
}

.w-33 {
    width: 33.333% !important;
}

/* Dark theme support for modal */
[data-theme="dark"] .modal-content {
    background-color: #0d1117;
    border-color: #30363d;
}

[data-theme="dark"] .preview-title {
    color: #e6edf3;
}

[data-theme="dark"] .preview-description-text {
    color: #e6edf3;
}

[data-theme="dark"] .capability-tag {
    background-color: #21262d;
    border-color: #30363d;
    color: #e6edf3;
}

[data-theme="dark"] .preview-stats {
    border-color: #30363d;
}
.recommendations-section {
        width: var(--recommendations-width);
        height: calc(100vh - 60px) !important;
        border-top: none;
    }

/* New Chat Button Styles */
.new-chat-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-chat-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    white-space: nowrap;
}

/* Sidebar kapalıyken sadece + ikonu göster */
.chat-history-sidebar:not(.open) .new-chat-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

@media (min-width: 1200px) {
    body.sidebar-closed .chat-history-sidebar .new-chat-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Sidebar kapalıyken text'i gizle */
.chat-history-sidebar:not(.open) .new-chat-btn .btn-text {
    display: none;
}

@media (min-width: 1200px) {
    body.sidebar-closed .chat-history-sidebar .new-chat-btn .btn-text {
        display: none;
    }
}

.new-chat-btn:hover {
    transform: translateY(-1px);
    background: #1cfb62c9;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.51);
}

.new-chat-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.new-chat-btn i {
    font-size: 20px;
}

/* Dark theme support */
[data-theme="dark"] .new-chat-section {
    border-bottom-color: var(--border-color);
}

/* Sidebar Inner Toggle Button */
.sidebar-inner-toggle {
    position: absolute;
    top: 16px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--card-hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.sidebar-inner-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.sidebar-inner-toggle:hover i {
    color: white;
}

.sidebar-inner-toggle i {
    color: var(--secondary-text);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Show toggle button when sidebar is collapsed */
.chat-history-sidebar:not(.open) .sidebar-inner-toggle {
    display: flex;
    top: 80px;
    right: 14px;
}

@media (min-width: 1200px) {
    body.sidebar-closed .chat-history-sidebar .sidebar-inner-toggle {
        display: flex;
        top: 90px;
        right: 14px;
    }
}

/* Creator Response Carousel Styles */
.creator-carousel-container {
    position: relative;
    margin: 0;
    width: 100%;
}

.creator-carousel-wrapper {
    overflow: hidden;
    border-radius: 0;
}

.creator-carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.creator-response-slide {
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.creator-response-bubble {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    transition: none;
    flex: 1;
}

.creator-response-bubble:hover {
    box-shadow: none;
}

[data-theme="dark"] .creator-response-bubble {
    background: transparent;
    border-color: transparent;
}

.creator-response-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light, #e0e0e0);
    flex-shrink: 0;
}

[data-theme="dark"] .creator-response-avatar {
    border-color: var(--dark-border, #4a5568);
}

.creator-response-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color, #007bff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.creator-response-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.creator-response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding: 0;
    border: none;
}

[data-theme="dark"] .creator-response-header {
    border: none;
}

.creator-response-info {
    flex: 1;
}

.creator-response-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary, #333);
    margin: 0;
}

[data-theme="dark"] .creator-response-name {
    color: var(--dark-text-primary, #f7fafc);
}

.creator-response-username {
    font-size: 11px;
    color: var(--text-secondary, #666);
    margin: 0;
}

[data-theme="dark"] .creator-response-username {
    color: var(--dark-text-secondary, #a0aec0);
}

.creator-response-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary, #333);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 4px;
    max-width: 70%;
}

[data-theme="dark"] .creator-response-content {
    color: var(--dark-text-primary, #f7fafc);
    border-color: var(--border-color, #4a5568);
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .carousel-nav-btn {
    background: rgba(45, 55, 72, 0.95);
    border-color: var(--dark-border, #4a5568);
}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--primary-color, #007bff);
    color: white;
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

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

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: -8px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light, #e0e0e0);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .carousel-indicator {
    background: var(--dark-border, #4a5568);
}

.carousel-indicator.active {
    background: var(--primary-color, #007bff);
    width: 24px;
    border-radius: 4px;
}

.carousel-indicator:hover:not(.active) {
    background: var(--primary-color, #007bff);
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-nav-prev {
        left: -12px;
    }
    
    .carousel-nav-next {
        right: -12px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-nav-btn i {
        font-size: 14px;
    }
}

/* When sidebar is open, show toggle on the right side */
.chat-history-sidebar.open .sidebar-inner-toggle {
    display: flex;
    top: 100px;
    right: 16px;
}

@media (min-width: 1200px) {
    body.sidebar-open .chat-history-sidebar .sidebar-inner-toggle {
        display: flex;
        top: 100px;
        right: 18px;
    }
}

/* Mobile: hide inner toggle when sidebar is closed, use external toggle */
@media (max-width: 768px) {
    .chat-history-sidebar:not(.open) .sidebar-inner-toggle {
        display: none;
    }
    
    body.sidebar-closed .chat-history-sidebar .sidebar-inner-toggle {
        display: none;
    }
}

/* Rotate icon when sidebar is open */
.chat-history-sidebar.open .sidebar-inner-toggle i {
    transform: rotate(180deg);
}

@media (min-width: 1200px) {
    body.sidebar-open .chat-history-sidebar .sidebar-inner-toggle i {
        transform: rotate(180deg);
    }
}

/* Collapsed sidebar styles - hide text, show only icons */
.chat-history-sidebar:not(.open) .new-chat-section {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1200px) {
    body.sidebar-closed .chat-history-sidebar .new-chat-section {
        padding: 12px 10px;
        border-bottom: 1px solid var(--border-color);
    }
}

[data-theme="dark"] .profile-placeholder {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Dark theme for toggle button */
[data-theme="dark"] .sidebar-inner-toggle {
    background: var(--card-hover-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-inner-toggle:hover {
    background: var(--primary-color);
}

/* Chat History Loading Styles */
.chat-history-loading {
    padding: 16px 0;
}

.loading-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.loading-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--search-box-bg, #f8f9fa);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-details {
    flex: 1;
    min-width: 0;
}

.loading-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.loading-preview {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
}

.loading-line {
    height: 12px;
    background-color: var(--search-box-bg, #f8f9fa);
    border-radius: 6px;
    margin-bottom: 6px;
    width: 80%;
}

.loading-line-small {
    height: 10px;
    background-color: var(--search-box-bg, #f8f9fa);
    border-radius: 5px;
    width: 60%;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg, 
        var(--search-box-bg, #f8f9fa) 25%, 
        rgba(255, 255, 255, 0.5) 50%, 
        var(--search-box-bg, #f8f9fa) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Dark theme support for loading */
[data-theme="dark"] .loading-item {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .loading-avatar,
[data-theme="dark"] .loading-title,
[data-theme="dark"] .loading-line,
[data-theme="dark"] .loading-line-small {
    background: var(--dark-search-box-bg);
}

/* Buyingen Welcome Section Styles */
.buyingen-welcome-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    display: none;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.buyingen-welcome-section.visible {
    display: block;
}

.buyingen-welcome-content {
    text-align: center;
}

.buyingen-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.buyingen-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    overflow: hidden;
    position: relative;
}

.buyingen-avatar img {
    width: 100%;
    height: 235%;
    object-fit: cover;
    margin-top: 14px;
}

.buyingen-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.buyingen-status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.buyingen-welcome-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.buyingen-welcome-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    font-weight: 500;
}

.buyingen-welcome-description {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.8;
}

.buyingen-tip-section {
    background: var(--search-box-bg);
    border-radius: 10px;
    padding: 16px;
    text-align: left;
    transition: all 0.2s ease;
}

.buyingen-tip-section:hover {
    background: rgba(34, 197, 94, 0.1);
}

.buyingen-tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.buyingen-tip-header i {
    font-size: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

.buyingen-tip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.buyingen-tip-text {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
    padding-left: 26px;
}

/* Dark theme support for Buyingen welcome section */
[data-theme="dark"] .buyingen-welcome-section {
    background: var(--dark-card-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .buyingen-avatar {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .buyingen-status-indicator {
    border-color: var(--dark-card-bg);
}



[data-theme="dark"] .buyingen-tip-section:hover {
    background: rgba(34, 197, 94, 0.15);
}

/* Responsive adjustments for Buyingen welcome */
@media (max-width: 768px) {
    .buyingen-welcome-section {
        padding: 20px;
    }
    
    .buyingen-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .buyingen-welcome-title {
        font-size: 18px;
    }
    
    .buyingen-welcome-description {
        font-size: 12px;
    }
    
    .buyingen-tip-section {
        padding: 14px;
    }
    
    .buyingen-tip-header i {
        font-size: 16px;
    }
    
    .buyingen-tip-title {
        font-size: 13px;
    }
    
    .buyingen-tip-text {
        font-size: 11px;
        padding-left: 24px;
    }
}
[data-theme="dark"] .loading-avatar {
    background-color: var(--dark-search-box-bg, #2d3748);
}

[data-theme="dark"] .loading-title {
    color: var(--dark-text-color, #f7fafc);
}

[data-theme="dark"] .loading-preview {
    color: var(--dark-text-muted, #a0aec0);
}

[data-theme="dark"] .loading-line,
[data-theme="dark"] .loading-line-small {
    background-color: var(--dark-search-box-bg, #2d3748);
}

[data-theme="dark"] .shimmer {
    background: linear-gradient(90deg, 
        var(--dark-search-box-bg, #2d3748) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        var(--dark-search-box-bg, #2d3748) 75%);
    background-size: 200% 100%;
}

/* Content Info Section */
.content-info-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 16px;
    margin-bottom: 0;
    display: none; /* Hidden by default, shown when non-buyingen content is open */
    flex-shrink: 0;
    box-shadow: none;
    border-bottom: none;
}

.content-info-section.visible {
    display: block;
}

.content-info-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.content-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--search-box-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: #22c55e;
    color: white;
    font-size: 36px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.content-details {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.content-creator-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--search-box-bg);
}

.content-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-creator-avatar i {
    font-size: 16px;
    color: var(--text-muted);
}

.content-creator-name {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-creator-name:hover {
    color: var(--primary-color);
}

.content-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.content-action-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.content-action-btn:hover {
    background: var(--search-box-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.content-action-btn i {
    font-size: 12px;
}

.content-action-btn.following {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.content-action-btn.following:hover {
    background: #1d8838;
    border-color: #1d8838;
}

.content-action-btn.liked {
    color: #dc3545;
    border-color: #dc3545;
}

.content-action-btn.liked i {
    color: #dc3545;
}

/* Content preview button special styling */
.content-action-btn.content-preview-btn {
    background: linear-gradient(135deg, var(--primary-color, #28a745) 0%, #20c997 100%);
    color: white;
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.content-action-btn.content-preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.content-action-btn.content-preview-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.content-action-btn.content-preview-btn:hover::before {
    left: 100%;
}

.content-action-btn.content-preview-btn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.content-action-btn.content-preview-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.content-action-btn.content-preview-btn:hover i {
    transform: scale(1.1);
}

/* Dark theme adjustments */
[data-theme="dark"] .content-info-section {
    background: var(--dark-card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .content-thumbnail {
    background: var(--dark-search-box-bg);
}

[data-theme="dark"] .content-creator-avatar {
    background: var(--dark-search-box-bg);
}

[data-theme="dark"] .content-action-btn {
    background: var(--dark-card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .content-action-btn:hover {
    background: var(--dark-search-box-bg);
}

[data-theme="dark"] .content-action-btn.content-preview-btn {
    background: linear-gradient(135deg, var(--primary-color, #28a745) 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .content-action-btn.content-preview-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.5);
}

/* Comments Preview Section */
.comments-preview-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comments-preview-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* When content-info-section is visible, comments section connects to it */
.content-info-section.visible ~ .comments-preview-section {
    border-top: 1px solid var(--border-color);
}

/* When content-info-section is NOT visible, comments section has its own rounded top */
.content-info-section:not(.visible) ~ .comments-preview-section {
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.comments-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Add a subtle divider when both sections are visible */
.content-info-section.visible + .comments-preview-section {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .content-info-section.visible + .comments-preview-section {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.comments-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comments-header-left i {
    font-size: 16px;
    color: var(--primary-color);
}

.comments-header-left h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.comments-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.comments-preview-header > i {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    font-size: 14px;
}

.comments-preview-section:hover .comments-preview-header > i {
    transform: translateX(3px);
    color: var(--primary-color);
}

.last-comment {
    display: flex;
    gap: 10px;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.comment-author {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-color);
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 12px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comments Panel */
.comments-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.comments-panel.open {
    right: 0;
}

.comments-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.comments-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-panel-title i {
    font-size: 20px;
    color: var(--primary-color);
}

.comments-panel-title h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.comments-panel-title .comments-count {
    font-size: 14px;
    color: var(--text-muted);
}

.close-comments-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-comments-btn:hover {
    background: var(--search-box-bg);
    transform: rotate(90deg);
}

.comments-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Comment Input Section */
.comment-input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.comment-input-avatar .avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

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

.comment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--search-box-bg);
    color: var(--text-color);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.comment-input-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.btn-cancel-comment,
.btn-submit-comment {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-comment {
    background: transparent;
    color: var(--text-color);
}

.btn-cancel-comment:hover {
    background: var(--search-box-bg);
}

.btn-submit-comment {
    background: var(--primary-color);
    color: white;
}

.btn-submit-comment:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.comment-timestamp {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-item .comment-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 8px;
    display: block;
    -webkit-line-clamp: unset;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    background: var(--search-box-bg);
    color: var(--text-color);
}

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

/* Dark theme support */


[data-theme="dark"] .comments-preview-header {
    border-bottom-color: var(--dark-border-color, #374151);
}

[data-theme="dark"] .comments-panel-header {
    border-bottom-color: var(--dark-border-color, #374151);
}

[data-theme="dark"] .comment-input {
    background: var(--dark-search-box-bg, #111827);
    border-color: var(--dark-border-color, #374151);
    color: var(--dark-text-color, #f9fafb);
}

[data-theme="dark"] .comment-input-section {
    border-bottom-color: var(--dark-border-color, #374151);
}

/* Quick Comment Input Section */
.quick-comment-input-section {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e9ecef;
}

.quick-comment-input-avatar .avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.quick-comment-input-wrapper {
    flex: 1;
}

.quick-comment-input {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.quick-comment-input:focus {
    outline: none;
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.quick-comment-input-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-cancel-quick-comment,
.btn-submit-quick-comment {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-quick-comment {
    background: transparent;
    color: #6c757d;
}

.btn-cancel-quick-comment:hover {
    background: #f8f9fa;
}

.btn-submit-quick-comment {
    background: var(--primary-color, #007bff);
    color: white;
}

.btn-submit-quick-comment:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Dark theme for quick comment input */
[data-theme="dark"] .quick-comment-input-section {
    border-top-color: var(--dark-border-color, #374151);
}

[data-theme="dark"] .quick-comment-input {
    background: var(--dark-search-box-bg, #111827);
    border-color: var(--dark-border-color, #374151);
    color: var(--dark-text-color, #f9fafb);
}

[data-theme="dark"] .quick-comment-input:focus {
    border-color: var(--primary-color, #007bff);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-cancel-quick-comment {
    color: #cbd5e0;
}

[data-theme="dark"] .btn-cancel-quick-comment:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-panel {
        width: 100%;
        right: -100%;
    }
    
    .comments-panel.open {
        right: 0;
    }
}

/* Panel overlay */
.comments-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comments-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* AI Related Chatbots Section in Right Panel */
.ai-related-chatbots-section {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ai-related-chatbots-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ai-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #007bff);
}

.ai-related-header i {
    color: var(--primary-color, #007bff);
    font-size: 20px;
}

.ai-related-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #1f2937);
}

.ai-related-chatbots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-related-chatbot-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--search-box-bg, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.ai-related-chatbot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-color, #007bff);
    background: var(--card-bg, #ffffff);
}

.ai-related-chatbot-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #e5e7eb);
}

.ai-related-chatbot-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #e5e7eb);
}

.ai-related-chatbot-placeholder i {
    font-size: 24px;
    color: white;
}

.ai-related-chatbot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-related-chatbot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.ai-related-chatbot-creator {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-related-chatbot-creator i {
    font-size: 10px;
}

.ai-related-chatbot-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
}

.ai-related-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-related-meta-item i {
    font-size: 12px;
}

/* Dark theme support */


[data-theme="dark"] .ai-related-header h6 {
    color: var(--dark-text-color, #f9fafb);
}

[data-theme="dark"] .ai-related-chatbot-item {
    border-color: var(--dark-border-color, #374151);
}

[data-theme="dark"] .ai-related-chatbot-item:hover {
    border-color: var(--primary-color, #007bff);
}

[data-theme="dark"] .ai-related-chatbot-title {
    color: var(--dark-text-color, #f9fafb);
}

[data-theme="dark"] .ai-related-chatbot-image,
[data-theme="dark"] .ai-related-chatbot-placeholder {
    border-color: var(--dark-border-color, #374151);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .ai-related-chatbots-section {
        padding: 16px;
    }
    
    .ai-related-chatbot-image,
    .ai-related-chatbot-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .ai-related-chatbot-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .ai-related-chatbots-section {
        border-radius: 12px;
        padding: 14px;
    }
    
    .ai-related-chatbot-item {
        padding: 10px;
    }
}

/* Recommended Chatbots Section - Matching ai-related-chatbot-item design */
.recommendations-section .chatbot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
}

.recommendations-section .chatbot-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--search-box-bg, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    height: 90px;
}

.recommendations-section .chatbot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-color, #007bff);
    background: var(--card-bg, #ffffff);
}

.chatbot-card-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #e5e7eb);
}

.chatbot-card-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color, #e5e7eb);
}

.chatbot-card-placeholder i {
    font-size: 24px;
    color: white;
}

.chatbot-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chatbot-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.chatbot-card-creator {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-card-creator i {
    font-size: 10px;
}

.chatbot-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
}

.chatbot-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-meta-item i {
    font-size: 12px;
}

/* Dark theme support for recommended chatbots */
[data-theme="dark"] .recommendations-section .chatbot-card {
    border-color: var(--dark-border-color, #374151);
}

[data-theme="dark"] .recommendations-section .chatbot-card:hover {
    border-color: var(--primary-color, #007bff);
}

[data-theme="dark"] .chatbot-card-title {
    color: var(--dark-text-color, #f9fafb);
}

[data-theme="dark"] .chatbot-card-image,
[data-theme="dark"] .chatbot-card-placeholder {
    border-color: var(--dark-border-color, #374151);
}

/* Responsive adjustments for recommended chatbots */
@media (max-width: 1200px) {
    .recommendations-section .chatbot-card {
        padding: 10px;
    }
    
    .chatbot-card-image,
    .chatbot-card-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-card-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .recommendations-section .chatbot-list {
        padding: 12px;
        gap: 10px;
    }
    
    .recommendations-section .chatbot-card {
        padding: 10px;
    }
    
    /* Öneri soruları için mobil düzenleme */
    .candidate-questions-wrapper {
        margin: 16px 8px;
        padding: 12px;
        max-width: calc(100% - 16px);
        width: auto !important;
        box-sizing: border-box;
    }
    
    .candidate-question-btn {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        text-align: left;
    }
}
