/* Big-chat page specific styles - No sidebar layout */

/* ==============================================
   YouTube-Style Sidebar for Big-Chat Page Only
   ============================================== */

/* CSS Variables for YouTube-style sidebar */
.youtube-sidebar-page {
    --sidebar-width-collapsed: 72px;
    --sidebar-width-expanded: 380px;
}

/* Mobile Info Button - Hidden by default, shown only on mobile */
.mobile-info-btn {
    display: none;
    background: var(--primary-color, #28a745);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 10; /* Ensure it's above other elements */
}

.mobile-info-btn:hover {
    background: var(--primary-color-dark, #218838);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.mobile-info-btn:active {
    transform: scale(0.95);
}

.mobile-info-btn i {
    line-height: 1;
}

/* Dark theme support for mobile info button */
[data-theme="dark"] .mobile-info-btn {
    background: var(--primary-color, #10b981);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .mobile-info-btn:hover {
    background: var(--primary-color-dark, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Input wrapper with info button - Default (Desktop) */
.input-wrapper-with-info {
    display: block;
    width: 100%;
}

/* Input container default positioning */
.input-wrapper-with-info .input-container {
    position: relative;
    width: 100%;
}

/* Mobile info button - visible by default for mobile/tablet */
.mobile-info-btn {
    display: flex;
}

/* Desktop: Ensure normal layout (992px and above - hide info button) */
@media (min-width: 992px) {
    .input-wrapper-with-info {
        display: block !important;
    }
    
    .input-wrapper-with-info .input-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .mobile-info-btn {
        display: none !important;
    }
}

/* Show info button on mobile and tablet (below 992px) */
@media (max-width: 991px) {
    .mobile-info-btn {
        display: flex;
    }
    
    /* Critical: Force proper layout structure */
    .youtube-sidebar-page .message-input {
        padding: 10px 8px !important;
    }
    
    .youtube-sidebar-page .message-input form {
        display: block !important;
        width: 100% !important;
    }
    
    /* Wrapper: horizontal flex layout */
    .youtube-sidebar-page .input-wrapper-with-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Input container takes remaining space */
    .youtube-sidebar-page .input-wrapper-with-info .input-container {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        position: relative !important;
    }
    
    /* Info button: fixed width, no shrink */
    .youtube-sidebar-page .mobile-info-btn {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        align-self: center !important;
    }
    
    /* Ensure buttons inside input-container stay positioned correctly */
    .youtube-sidebar-page .input-container #sendMessageBtn,
    .youtube-sidebar-page .input-container .file-upload-btn {
        position: absolute !important;
    }
}

/* Mobile Recommendations Close Button */
.mobile-recommendations-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-recommendations-close:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.mobile-recommendations-close i {
    line-height: 1;
}

/* Mobile fullscreen mode for recommendations */
@media (max-width: 991px) {
    .recommendations-section.mobile-fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 1000;
        background: var(--background, #fff);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px;
        padding-top: 70px; /* Space for close button */
        display: block !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .recommendations-section.mobile-fullscreen .mobile-recommendations-close {
        display: flex;
    }
    
    /* Prevent body scroll when fullscreen is active */
    body.recommendations-fullscreen-active {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Dark theme support */
    [data-theme="dark"] .recommendations-section.mobile-fullscreen {
        background: var(--dark-background, #0d1117);
    }
}


/* Header adjustments for YouTube-style */
.youtube-sidebar-page .dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 102;
}

/* Body padding for fixed header */
.youtube-sidebar-page {
    padding-top: 72px;
}

/* Mobile specific body padding */
@media (max-width: 768px) {
    .youtube-sidebar-page {
        padding-top: 60px;
    }
    
    /* Better mobile viewport handling */
    .youtube-sidebar-page {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    html {
        height: -webkit-fill-available;
    }
}

/* Sidebar - YouTube style (collapsed by default on small screens) */
.youtube-sidebar-page .sidebar-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: var(--sidebar-width-collapsed);
    height: calc(100vh - 72px);
    background-color: var(--background, #fff);
    border-right: 1px solid var(--border-color, #e5e7eb);
    z-index: 50;
    transition: var(--sidebar-transition);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Large screens: Sidebar expanded by default */
@media (min-width: 1200px) {
    .youtube-sidebar-page .sidebar-menu {
        width: var(--sidebar-width-expanded);
    }
    
    /* Main content adjusted for expanded sidebar on large screens */
    .youtube-sidebar-page .main-content {
        margin-left: var(--sidebar-width-expanded) !important;
        width: calc(100% - var(--sidebar-width-expanded)) !important;
        max-width: calc(100vw - var(--sidebar-width-expanded)) !important;
    }
    
    /* Show all content on large screens by default */
    .youtube-sidebar-page .sidebar-user-profile {
        padding: 16px 20px;
        justify-content: flex-start;
    }
    
    .youtube-sidebar-page .sidebar-user-info {
        display: block;
    }
    
    .youtube-sidebar-page .sidebar-nav-item {
        justify-content: flex-start;
        padding: 10px 20px;
        gap: 24px;
    }
    
    .youtube-sidebar-page .sidebar-nav-item span {
        display: inline;
    }
    
    .youtube-sidebar-page .history-item {
        justify-content: flex-start;
        padding: 8px 20px;
    }
    
    .youtube-sidebar-page .history-item-info {
        display: block;
    }
    
    .youtube-sidebar-page .sidebar-section-title {
        text-align: left;
    }
    
    .youtube-sidebar-page .sidebar-section-title-text {
        display: inline;
        font-size: 0.85rem;
    }
    
    /* When manually collapsed on large screens */
    .youtube-sidebar-page .sidebar-menu.collapsed {
        width: var(--sidebar-width-collapsed);
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed ~ .main-content,
    .youtube-sidebar-page.sidebar-collapsed .main-content {
        margin-left: var(--sidebar-width-collapsed) !important;
        width: calc(100% - var(--sidebar-width-collapsed)) !important;
        max-width: calc(100vw - var(--sidebar-width-collapsed)) !important;
    }
    
    /* Hide text when manually collapsed */
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-user-profile {
        padding: 12px 0;
        justify-content: center;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-user-info {
        display: none;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-nav-item {
        justify-content: center;
        padding: 10px 24px;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-nav-item span {
        display: none;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .history-item {
        justify-content: center;
        padding: 8px 24px;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .history-item-info {
        display: none;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-section-title {
        justify-content: center;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-section-title-text {
        display: none;
    }
    
    .youtube-sidebar-page .sidebar-menu.collapsed .sidebar-section-title i {
        font-size: 24px;
    }
    
    /* Hide chat history content when collapsed on large screens */
    .youtube-sidebar-page .sidebar-menu.collapsed .chat-history-content {
        display: none;
    }
}

/* When sidebar is expanded */
.youtube-sidebar-page .sidebar-menu.show {
    width: var(--sidebar-width-expanded);
}

/* Hide overlay on desktop - YouTube style doesn't use it */
.youtube-sidebar-page .sidebar-overlay {
    display: none !important;
}

/* Hide close button in YouTube style (hamburger toggles instead) */
.youtube-sidebar-page .sidebar-close-btn {
    display: none;
}

/* Sidebar header - hide in collapsed state */
.youtube-sidebar-page .sidebar-header {
    display: none;
}

/* Main content adjusts for sidebar */
.youtube-sidebar-page .main-content {
    margin-left: var(--sidebar-width-collapsed) !important;
    width: calc(100% - var(--sidebar-width-collapsed)) !important;
    max-width: calc(100vw - var(--sidebar-width-collapsed)) !important;
    transition: var(--sidebar-transition);
    display: flex;
    flex-direction: column;
}

/* When sidebar is expanded, content shifts (only on larger screens) */
@media (min-width: 992px) {
    .youtube-sidebar-page .sidebar-menu.show ~ .main-content,
    .youtube-sidebar-page.sidebar-expanded .main-content {
        margin-left: var(--sidebar-width-expanded) !important;
        width: calc(100% - var(--sidebar-width-expanded)) !important;
        max-width: calc(100vw - var(--sidebar-width-expanded)) !important;
    }
}

/* Sidebar User Profile - Center when collapsed */
.youtube-sidebar-page .sidebar-user-profile {
    padding: 12px 0;
    justify-content: center;
    transition: var(--sidebar-transition);
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-user-profile {
    padding: 16px 20px;
    justify-content: flex-start;
}

/* Hide user info when collapsed */
.youtube-sidebar-page .sidebar-user-info {
    display: none;
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-user-info {
    display: block;
}

/* Sidebar avatar size */
.youtube-sidebar-page .sidebar-user-avatar {
    width: 40px;
    height: 40px;
}

/* Sidebar divider */
.youtube-sidebar-page .sidebar-divider {
    margin: 8px 16px;
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-divider {
    margin: 8px 20px;
}

/* Sidebar Nav */
.youtube-sidebar-page .sidebar-nav {
    padding: 8px 0;
}

/* Nav items - Center icons when collapsed */
.youtube-sidebar-page .sidebar-nav-item {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    transition: var(--sidebar-transition);
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-nav-item {
    justify-content: flex-start;
    padding: 10px 20px;
    gap: 24px;
}

/* Hide text when collapsed */
.youtube-sidebar-page .sidebar-nav-item span {
    display: none;
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-nav-item span {
    display: inline;
}


.youtube-sidebar-page .sidebar-menu.show .sidebar-nav-item span {
    display: inline;
}

/* Icons stay visible */
.youtube-sidebar-page .sidebar-nav-item i {
    font-size: 24px;
    flex-shrink: 0;
}

/* Bottom nav - sticks to bottom in YouTube-style sidebar */
.youtube-sidebar-page .bottom-nav {
    margin-top: auto;
    flex-shrink: 0;
}

/* Chat history section - takes up remaining space */
.youtube-sidebar-page .sidebar-section {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Hide chat history content when collapsed */
.youtube-sidebar-page .chat-history-content {
    display: none;
}

/* Show chat history content when expanded */
.youtube-sidebar-page .sidebar-menu.show .chat-history-content {
    display: block;
}

/* Section titles - Show icon when collapsed */
.youtube-sidebar-page .sidebar-section-title {
    padding: 8px 24px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: var(--sidebar-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Icon stays visible when collapsed */
.youtube-sidebar-page .sidebar-section-title i {
    font-size: 24px;
    flex-shrink: 0;
}

/* Hide text when collapsed */
.youtube-sidebar-page .sidebar-section-title-text {
    display: none;
}

/* Show text when expanded */
.youtube-sidebar-page .sidebar-menu.show .sidebar-section-title {
    text-align: left;
    justify-content: flex-start;
    padding: 8px 20px;
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-section-title i {
    font-size: 16px;
    margin-right: 4px;
}

.youtube-sidebar-page .sidebar-menu.show .sidebar-section-title-text {
    display: inline;
    font-size: 0.85rem;
}

/* History Mode Toggle Buttons */
.history-mode-toggle {
    display: none !important; /* Hidden when sidebar is collapsed */
    gap: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: var(--background-secondary, #f5f5f5);
    border-radius: 8px;
}

[data-theme="dark"] .history-mode-toggle {
    background-color: rgba(255, 255, 255, 0.05);
}

.youtube-sidebar-page .sidebar-menu.show .history-mode-toggle {
    display: flex !important; /* Show when sidebar is expanded */
}

.history-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background-color: transparent;
    color: var(--text-muted, #6b7280);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.history-mode-btn i {
    font-size: 1rem;
}

.history-mode-btn:hover {
    background-color: var(--background, rgba(0, 0, 0, 0.05));
    color: var(--text-primary, #000);
}

[data-theme="dark"] .history-mode-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
}

.history-mode-btn.active {
    background-color: var(--primary-color, #007bff);
    color: white;
}

.history-mode-btn.active:hover {
    background-color: var(--primary-color-dark, #0056b3);
}

[data-theme="dark"] .history-mode-btn.active {
    background-color: var(--primary-color, #007bff);
}

[data-theme="dark"] .history-mode-btn.active:hover {
    background-color: var(--primary-color-dark, #0056b3);
}

/* Hide button text when sidebar is very narrow */
@media (max-width: 1199px) {
    .history-mode-toggle {
        display: none !important;
    }
}

/* History items - Center avatars when collapsed */
.youtube-sidebar-page .history-item {
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: var(--sidebar-transition);
}

.youtube-sidebar-page .sidebar-menu.show .history-item {
    justify-content: flex-start;
    padding: 8px 20px;
}

/* Hide history text when collapsed */
.youtube-sidebar-page .history-item-info {
    display: none;
}

.youtube-sidebar-page .sidebar-menu.show .history-item-info {
    display: block;
}

/* History avatar stays visible */
.youtube-sidebar-page .history-item-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Mobile: Use overlay style */
@media (max-width: 768px) {
    
    
    .youtube-sidebar-page .sidebar-menu {
        width: 280px !important;
        left: -280px;
        z-index: 1002;
    }
    
    .youtube-sidebar-page .sidebar-menu.show {
        left: 0;
    }
    
    .youtube-sidebar-page .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Show full content on mobile */
    .youtube-sidebar-page .sidebar-nav-item,
    .youtube-sidebar-page .history-item {
        justify-content: flex-start !important;
        padding: 10px 16px !important;
    }
    
    .youtube-sidebar-page .sidebar-nav-item span,
    .youtube-sidebar-page .history-item-info,
    .youtube-sidebar-page .sidebar-user-info,
    .youtube-sidebar-page .sidebar-section-title-text {
        display: block !important;
    }
    
    .youtube-sidebar-page .sidebar-section-title {
        text-align: left !important;
    }
    
    .youtube-sidebar-page .sidebar-close-btn {
        display: flex !important;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Hide old chat history sidebar elements */
.youtube-sidebar-page .chat-history-sidebar,
.youtube-sidebar-page .chat-history-toggle {
    display: none !important;
}

/* Chat section adjustments for YouTube sidebar */
.youtube-sidebar-page .chat-section {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Desktop: Chat and recommendations side by side */
@media (min-width: 992px) {
    .youtube-sidebar-page .main-content {
        flex-direction: row;
        gap: 0;
    }
    
    .youtube-sidebar-page .chat-section {
        flex: 1;
        min-width: 0;
        max-height: 92vh;
    }
    
    .youtube-sidebar-page .recommendations-section {
        width: 380px;
        flex-shrink: 0;
    }
}

/* Tablet (768px - 991px): Show recommendations, show info button */
@media (min-width: 768px) and (max-width: 991px) {
    .youtube-sidebar-page .main-content {
        flex-direction: row;
        gap: 16px;
    }
    
    .youtube-sidebar-page .chat-section {
        flex: 1;
        min-width: 0;
    }
    
    .youtube-sidebar-page .recommendations-section {
        width: 320px;
        flex-shrink: 0;
    }
    
    /* Override sidebar expansion on tablet */
    .youtube-sidebar-page.sidebar-expanded .main-content,
    .youtube-sidebar-page .sidebar-menu.show ~ .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
}

/* Mobile: Stack vertically (below 768px) */
@media (max-width: 767px) {
    .youtube-sidebar-page .chat-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        height: calc(100vh - 60px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Hide recommendations section on mobile by default */
    .youtube-sidebar-page .recommendations-section {
        display: none;
    }
    
    /* Main content takes full width on mobile */
    .youtube-sidebar-page .main-content {
        flex-direction: column;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Override any sidebar expansion on mobile */
    .youtube-sidebar-page.sidebar-expanded .main-content,
    .youtube-sidebar-page .sidebar-menu.show ~ .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Chat messages area adjustments */
    .youtube-sidebar-page .chat-messages {
        padding: 12px 8px !important;
        width: 100% !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Message input adjustments */
    .youtube-sidebar-page .message-input {
        padding: 10px 8px !important;
        width: 100% !important;
        background: var(--background, #fff);
        border-top: 1px solid var(--border-color, #e5e7eb);
        overflow: visible !important;
    }
    
    /* Input wrapper full width on mobile */
    .youtube-sidebar-page .input-wrapper-with-info {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 0;
    }
    
    /* Message input form */
    .youtube-sidebar-page .message-input form {
        width: 100%;
        display: block;
    }
    
    /* Input container mobile adjustments */
    .youtube-sidebar-page .input-container {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* User message and bot message mobile spacing */
    .youtube-sidebar-page .user-message,
    .youtube-sidebar-page .bot-message {
        padding: 8px 4px !important;
    }
    
    /* Message avatars slightly smaller on mobile */
    .youtube-sidebar-page .message-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Message wrapper adjustments */
    .youtube-sidebar-page .message-wrapper {
        padding: 8px 12px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
    .youtube-sidebar-page .chat-messages {
        padding: 8px 4px !important;
    }
    
    .youtube-sidebar-page .message-input {
        padding: 8px 4px !important;
    }
    
    .youtube-sidebar-page .user-message,
    .youtube-sidebar-page .bot-message {
        padding: 6px 2px !important;
    }
    
    .youtube-sidebar-page .message-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .youtube-sidebar-page .message-wrapper {
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    
    /* Mobile info button smaller */
    .mobile-info-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        margin-left: 0 !important;
    }
    
    /* Adjust for smaller screens */
    .youtube-sidebar-page .mobile-info-btn {
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .youtube-sidebar-page .input-wrapper-with-info {
        gap: 6px !important;
    }
    
    /* Ensure flex layout on small screens */
    .youtube-sidebar-page .input-wrapper-with-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .youtube-sidebar-page .input-wrapper-with-info .input-container {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* 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;
}

/* Don't truncate initial greeting message - always show full form */
.bot-message[data-message-id="initial_greeting"] .message-content {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

.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%;
    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);
}

.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: 6px;
    margin-bottom: 4px;
}

.user-message-username {
    font-size: 15px;
    color: var(--text-primary, #1f2937);
    font-weight: 600;
    opacity: 1;
    letter-spacing: 0.01em;
}

[data-theme="dark"] .user-message-username {
    color: var(--dark-text-primary, #f3f4f6);
    font-weight: 600;
}

[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: var(--primary-color) !important;
    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;
}

.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;
    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);
}

.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;
    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;
}

#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;
}

/* Modal footer button widths - equal width for all buttons */
.modal-footer .w-33 {
    width: 33.333% !important;
    flex: 1 1 33.333%;
}

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

/* Ensure buttons don't shrink below minimum width on small screens */
@media screen and (max-width: 768px) {
    .modal-footer .d-flex {
        flex-direction: column;
    }
    
    .modal-footer .w-33 {
        width: 100% !important;
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-footer .w-33:last-child {
        margin-bottom: 0;
    }
}

/* 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);
        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;
    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;
}

.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;
}

/* 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 - Figma Design */
.creator-carousel-container {
    margin: 24px 0;
    width: 100%;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Introductory text with sparkles icon */
.carousel-intro-text {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}



.carousel-intro-text p {
    color: var(--secondary-text, #6c757d);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

[data-theme="dark"] .carousel-intro-text p {
    color: var(--secondary-text, #94a3b8);
}

/* Carousel wrapper with scroll */
.creator-carousel-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.creator-carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

/* Navigation buttons - positioned absolutely */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-nav-btn {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--border-color, #2a2a2a);
}

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

.carousel-nav-btn.carousel-nav-next {
    right: 0;
}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--primary-color, #00FF66);
    border-color: var(--primary-color, #00FF66);
    color: #000;
}

[data-theme="dark"] .carousel-nav-btn:hover:not(:disabled) {
    background: var(--primary-color, #00FF66);
    border-color: var(--primary-color, #00FF66);
    color: #000;
}

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

.carousel-nav-btn i {
    font-size: 18px;
    color: #fff;
}

.carousel-nav-btn:hover:not(:disabled) i {
    color: #000;
}

/* Carousel track - horizontal scroll */
.creator-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px calc(50% - 340px);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.creator-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Gradient overlays for edges */
.creator-carousel-wrapper::before,
.creator-carousel-wrapper::after {
    content: '';
    top: 0;
    bottom: 8px;
    width: 32px;
    pointer-events: none;
    z-index: 5;
}




[data-theme="dark"] .creator-carousel-wrapper::before {
    background: linear-gradient(to right, var(--bg-color, #0D0D0D), transparent);
}


[data-theme="light"] .creator-carousel-wrapper::after {
    background: linear-gradient(to left, var(--bg-color, #ffffff), transparent);
}

/* Individual slide - card style */
.creator-response-slide {
    width: 80%;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    animation: fadeInSlide 0.3s ease-out forwards;
    animation-delay: calc(var(--slide-index, 0) * 0.1s);
    opacity: 0;
    transition: filter 0.2s ease-out, 
                opacity 0.25s ease-out, 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease-out;
}

/* Non-active slides - sönük ve blurlu */
.creator-response-slide:not(.active) {
    opacity: 0.5;
    filter: blur(3px) grayscale(50%) brightness(0.75);
    transform: scale(0.94);
}

/* Active slide - net ve parlak */
.creator-response-slide.active {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.02) !important;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 255, 102, 0.15);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Card container */
.creator-card {
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}

[data-theme="dark"] .creator-card {
    background: var(--card-bg, #1a1a1a);
    border-color: var(--border-color, #2a2a2a);
}

[data-theme="light"] .creator-card {
    background: var(--card-bg, #ffffff);
    border-color: var(--border-color, #e5e7eb);
}

.creator-response-slide:hover .creator-card {
    border-color: rgba(0, 255, 102, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* Active slide hover - daha güçlü efekt */
.creator-response-slide.active:hover .creator-card {
    border-color: rgba(0, 255, 102, 0.9);
    box-shadow: 0 12px 28px rgba(0, 255, 102, 0.2), 0 0 40px rgba(0, 255, 102, 0.15);
    transform: scale(1.04);
}

/* Non-active slides hover - blur azalır ama hala sönük */
.creator-response-slide:not(.active):hover {
    opacity: 0.7;
    filter: blur(1.5px) grayscale(30%) brightness(0.85);
}

[data-theme="dark"] .creator-response-slide:hover .creator-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .creator-response-slide.active:hover .creator-card {
    box-shadow: 0 12px 28px rgba(0, 255, 102, 0.25), 0 0 40px rgba(0, 255, 102, 0.2);
}

/* Dark theme için active slide glow */
[data-theme="dark"] .creator-response-slide.active {
    box-shadow: 0 8px 32px rgba(0, 255, 102, 0.2);
}

/* Light theme için active slide shadow */
[data-theme="light"] .creator-response-slide.active {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Avatar and header section */
.creator-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Avatar with ring */
.creator-avatar-wrapper {
    flex-shrink: 0;
}

.creator-response-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 255, 102, 0.2);
}

[data-theme="dark"] .creator-response-avatar {
    border-color: rgba(0, 255, 102, 0.3);
}

.creator-response-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color) !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid rgba(0, 255, 102, 0.2);
}

/* Creator info */
.creator-info-wrapper {
    flex: 1;
    min-width: 0;
}

.creator-response-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color, #ffffff);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

[data-theme="light"] .creator-response-name {
    color: var(--text-color, #0d1117);
}

.creator-response-expertise {
    font-size: 14px;
    color: var(--secondary-text, #94a3b8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

[data-theme="light"] .creator-response-expertise {
    color: var(--secondary-text, #6c757d);
}

/* Answer preview box */
.creator-answer-preview {
    background: var(--input-bg, #0D0D0D);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
}

[data-theme="dark"] .creator-answer-preview {
    background: var(--input-bg, #0D0D0D);
}

[data-theme="light"] .creator-answer-preview {
    background: var(--input-bg, #f8f9fa);
}

.creator-response-answer {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color, #ffffff);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

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

[data-theme="light"] .creator-response-answer {
    color: var(--text-color, #0d1117);
}

.creator-response-answer p {
    margin: 0;
}

.creator-response-answer p:last-child {
    margin-bottom: 0;
}

/* Action buttons container */
.creator-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

/* "Sohbete Geç" button - compact width */
.creator-chat-button {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 102, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 255, 102, 0.1);
    color: var(--primary-color, #00FF66);
    white-space: nowrap;
}

.creator-chat-button:hover {
    background: rgba(0, 255, 102, 0.2);
    border-color: rgba(0, 255, 102, 0.5);
}

.creator-chat-button .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.creator-chat-button:hover .arrow {
    transform: translateX(2px);
}

/* Info button */
.creator-info-button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid var(--border-color, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--secondary-text, #94a3b8);
}

.creator-info-button:hover {
    background: rgba(0, 255, 102, 0.1);
    border-color: rgba(0, 255, 102, 0.3);
    color: var(--primary-color, #00FF66);
}

.creator-info-button i {
    font-size: 18px;
}

[data-theme="light"] .creator-info-button {
    border-color: var(--border-color, #e5e7eb);
    color: var(--secondary-text, #6c757d);
}

[data-theme="light"] .creator-info-button:hover {
    background: rgba(0, 255, 102, 0.1);
    border-color: rgba(0, 255, 102, 0.3);
    color: var(--primary-color, #00FF66);
}

/* Continue with Buyingen button */
.carousel-continue-buyingen {
    text-align: center;
    margin-top: 16px;
}

.carousel-continue-buyingen button {
    background: none;
    border: none;
    color: var(--secondary-text, #94a3b8);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.carousel-continue-buyingen button:hover {
    color: var(--primary-color, #00FF66);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .creator-carousel-track {
        padding: 8px calc(50% - 140px);
    }
    
    .creator-response-slide {
        min-width: 280px;
        width: 280px;
    }
    
    .creator-card {
        padding: 12px;
    }
    
    .creator-response-avatar,
    .creator-response-avatar-fallback {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav-btn i {
        font-size: 16px;
    }
    
    .carousel-intro-text p {
        font-size: 13px;
    }
    
    .creator-answer-preview {
        padding: 10px;
    }
    
    .creator-response-answer {
        font-size: 13px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .creator-carousel-track {
        padding: 8px calc(50% - 250px);
    }
    
    .creator-response-slide {
        min-width: 500px;
        width: 500px;
    }
}

/* 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);
    }
}

/* 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 More Indicator */
.loading-more-history {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.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);
}

.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;
}

.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);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    display: none; /* Hidden by default, shown when non-buyingen content is open */
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.content-info-content {
    text-align: center;
}

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

.content-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    overflow: hidden;
    position: relative;
}

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

.content-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

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

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

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

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

.content-info-subtitle a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-info-subtitle a:hover {
    color: var(--primary-color);
}

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

.content-actions-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.content-action-btn {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 500;
}

.content-action-btn:hover {
    background: var(--search-box-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.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);
}

.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);
}

/* Order status button - full width */
#orderStatusBtn {
    grid-column: span 2;
}

/* Dark theme adjustments */
[data-theme="dark"] .content-info-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"] .content-avatar {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .content-status-indicator {
    border-color: var(--dark-card-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);
}

/* Responsive adjustments for Content info */
@media (max-width: 768px) {
    .content-info-section {
        padding: 20px;
    }
    
    .content-avatar-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .content-avatar-fallback {
        font-size: 40px;
    }
    
    .content-status-indicator {
        width: 16px;
        height: 16px;
        bottom: 6px;
        right: 6px;
    }
    
    .content-info-title {
        font-size: 18px;
    }
    
    .content-info-subtitle {
        font-size: 12px;
    }
    
    .content-info-description {
        font-size: 12px;
    }
    
    .content-actions-section {
        gap: 6px;
    }
    
    .content-action-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* Comments Preview Section */
.comments-preview-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    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);
}

.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);
}

.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) !important;
    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;
    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) !important;
    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;
}

.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;
}

.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;
}

.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: var(--primary-color) !important;
    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;
    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;
}

.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);
}

.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;
    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;
    text-decoration: none;
    color: inherit;
    height: fit-content;
}

.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;
    height: fit-content;
}

.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 0;
    }
    
    .candidate-question-btn {
        min-width: 180px;
        max-width: 260px;
        font-size: 0.85rem;
        padding: 12px 16px;
    }
}

/* ==============================================
   Suggested Chatbots Styles
   ============================================== */

.suggested-chatbots-container {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggested-chatbots-header svg {
    color: var(--text-color);
    opacity: 0.8;
}

[data-bs-theme="dark"] .suggested-chatbots-header svg {
    opacity: 0.9;
}

.suggested-chatbot-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.suggested-chatbot-card:last-child {
    margin-bottom: 0;
}

.suggested-chatbot-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dark mode support for suggested chatbots */




[data-bs-theme="dark"] .suggested-chatbot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: var(--bs-secondary-bg);
}

.suggested-chatbot-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive design for suggested chatbots */
@media (max-width: 768px) {
    .suggested-chatbots-container {
        padding: 10px;
    }
    
    .suggested-chatbot-card {
        padding: 10px;
        gap: 10px;
    }
    
    .suggested-chatbot-card img {
        width: 50px;
        height: 50px;
    }
}

/* ==============================================
   YouTube Video Iframe Container
   ============================================== */

#youtubeVideoContainer {
    position: fixed !important;
    width: 320px;
    height: 180px;
    background: #000;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: move;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

#youtubeVideoContainer:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] #youtubeVideoContainer {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] #youtubeVideoContainer:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
}

/* Responsive styles for YouTube video */
@media (max-width: 768px) {
    #youtubeVideoContainer {
        width: 280px;
        height: 158px;
    }
}

@media (max-width: 480px) {
    #youtubeVideoContainer {
        width: 240px;
        height: 135px;
    }
}

/* Video Control Panel Styles */
.video-control-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-control-btn:active {
    transform: scale(0.95);
}

[data-bs-theme="dark"] .video-control-btn {
    background: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .video-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile Video Optimizations */
#youtubeVideoContainer.mobile-video {
    touch-action: pan-y;
}

#youtubeVideoContainer.mobile-video .video-control-panel {
    height: 40px;
    padding: 0 8px;
}

#youtubeVideoContainer.mobile-video .video-control-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* On mobile, make controls always visible when not minimized */
@media (max-width: 768px) {
    #youtubeVideoContainer .video-control-panel {
        opacity: 1 !important;
    }
    
    #youtubeVideoContainer {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    /* Prevent text selection on mobile during drag */
    #youtubeVideoContainer * {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    #youtubeVideoContainer {
        width: 300px !important;
        height: 169px !important;
    }
}

/* Make chat messages container relative for absolute positioning */
.chat-messages {
    position: relative;
}
