/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Logo Styles */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.favicon-img {
    height: 17px; /* Match other pages */
    width: 17px;
}

.logo-img {
    height: 17px; /* Match other pages - not too big */
    width: auto;
}

/* Mobile Menu Styles */
/* Mobile menu toggle styles moved to mobile-menu-standard.css */

/* Mobile nav overlay and menu styles moved to mobile-menu-standard.css */

/* All mobile nav header, list, and link styles moved to mobile-menu-standard.css */

/* Mobile Responsive Styles */

/* Mobile Header */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .header-container {
        height: 64px;
        padding: 0 8px;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Move logo to the left */
    .logo {
        order: 1;
        margin-right: auto;
    }

    /* Center the mobile menu toggle */
    /* Mobile menu toggle responsive styles handled in mobile-menu-standard.css */

    /* Move logout button to the right */
    .header-cta {
        order: 3;
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    /* Hide navigation on mobile */
    .navigation {
        display: none;
    }

    /* Hide LinkedIn headshots on mobile only */
    .header-social-link-wrapper {
        display: none;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Mobile Chat Interface */
    .chat-main {
        height: calc(100vh - 64px);
    }

    /* Sidebar collapsed by default on mobile */
    .chat-sidebar {
        width: 0 !important;
        border-right: none !important;
        overflow: hidden !important;
    }

    .chat-sidebar.collapsed {
        width: 0 !important;
        border-right: none !important;
        overflow: hidden !important;
    }

    .chat-sidebar:not(.collapsed) {
        width: 280px !important;
        border-right: 1px solid #e9ecef !important;
        overflow: visible !important;
    }

    .chat-sidebar:not(.collapsed) .sidebar-header,
    .chat-sidebar:not(.collapsed) .sidebar-content {
        display: block !important;
    }

    /* Show mobile menu toggle button on mobile */
    /* Mobile menu toggle positioning handled in mobile-menu-standard.css */

    /* Show floating toggle button on mobile when sidebar is collapsed */
    .chat-sidebar.collapsed ~ .chat-container .floating-sidebar-toggle {
        display: flex !important;
    }

    .chat-sidebar:not(.collapsed) ~ .chat-container .floating-sidebar-toggle {
        display: none !important;
    }

    /* Mobile chat container */
    .chat-container {
        flex: 1;
        width: 100%;
    }

    /* Mobile chat messages */
    .chat-messages {
        padding: 16px;
    }

    .chat-messages-inner {
        max-width: none;
        margin: 0;
    }

    /* Mobile welcome screen */
    .welcome-screen {
        padding: 20px 16px;
    }

    .welcome-content {
        max-width: none;
        text-align: center;
    }

    .welcome-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .welcome-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* Mobile topic buttons */
    .topic-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .topic-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Mobile chat input */
    .chat-input-container {
        padding: 16px;
        border-top: 1px solid #e9ecef;
    }

    .chat-input-wrapper {
        max-width: none;
        margin: 0;
    }

    .chat-input {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }

    .send-button {
        min-height: 44px;
        padding: 0 16px;
    }

    /* Mobile settings dropdown */
    .settings-dropdown {
        right: 16px;
        left: auto;
        width: 200px;
    }

    /* Mobile API key banner */
    .api-key-banner {
        margin: 0 16px 16px;
        border-radius: 8px;
    }

    .api-key-banner-content {
        padding: 12px 16px;
    }

    /* Mobile disclaimer */
    .chat-disclaimer {
        padding: 12px 16px;
        font-size: 12px;
        text-align: center;
    }

    .chat-disclaimer p {
        margin: 0;
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .chat-sidebar {
        width: 240px;
    }

    .chat-sidebar.collapsed {
        width: 60px;
    }

    .chat-sidebar.collapsed .sidebar-header,
    .chat-sidebar.collapsed .sidebar-content {
        display: none;
    }

    .floating-sidebar-toggle {
        display: flex !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f1ea;
    height: 100vh;
    overflow: hidden;
}

/* Header Styles (same as homepage) */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #f9f1ea;
    z-index: 1000;
    padding: 0 24px;
    border-bottom: 1px solid #e9ecef;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: none;
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.favicon-img {
    height: 34px;
    width: 34px;
}

.logo-img {
    height: 17px;
    width: auto;
}

/* Navigation */
.navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Ensure consistent nav item sizing */
.my-account-nav .nav-link {
    white-space: nowrap;
    display: inline-block;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-social {
    display: flex;
    gap: 12px;
}

.header-social-link-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-headshot-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.header-linkedin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    color: #0077b5;
}

.header-social-link-wrapper:hover .header-headshot-img {
    opacity: 0;
}

.header-social-link-wrapper:hover .header-linkedin-icon {
    opacity: 1;
}

.header-social-link-wrapper:hover .header-social-link {
    background: rgba(0, 119, 181, 0.1);
}

.login-button {
    background: #000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-button:hover {
    background: #333;
}

.logout-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Main Chat Interface */
.chat-main {
    display: flex;
    height: calc(100vh - 72px);
    background: #f9f1ea;
    overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
    width: 280px;
    background: #f2ede3;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    position: relative;
}

.chat-sidebar.collapsed {
    width: 0;
    border-right: none;
    overflow: hidden;
}

.chat-sidebar.collapsed .sidebar-header,
.chat-sidebar.collapsed .sidebar-content {
    display: none;
}

.chat-sidebar.mobile-hidden {
    transform: translateX(-100%);
}

/* Floating toggle button when sidebar is collapsed */
.floating-sidebar-toggle {
    position: fixed;
    top: 90px;
    left: 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-sidebar-toggle:hover {
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-sidebar.collapsed ~ .chat-container .floating-sidebar-toggle,
.sidebar-collapsed .floating-sidebar-toggle {
    display: flex;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle-btn {
    background: transparent;
    border: 1px solid #e9ecef;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: #e9ecef;
    color: #333;
}

.new-chat-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.new-chat-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.chat-sidebar.collapsed .new-chat-text {
    display: none;
}

.chat-sidebar.collapsed .new-chat-btn {
    width: 36px;
    height: 36px;
    padding: 6px;
    justify-content: center;
}

.sidebar-content {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-starred-btn {
    background: transparent;
    border: 1px solid #e9ecef;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-starred-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.filter-starred-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.chat-sidebar.collapsed .sidebar-filters {
    justify-content: center;
}

.chat-sidebar.collapsed .sidebar-title {
    display: none;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f1e6;
    position: relative;
    overflow: hidden;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.chat-messages-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
}

.welcome-avatar {
    margin-bottom: 24px;
}

.welcome-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.centered-input-container {
    margin-bottom: 32px;
}

.centered-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.centered-input-wrapper:focus-within {
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.centered-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    padding: 12px 0;
    resize: none;
    min-height: 24px;
    max-height: 168px; /* 7 lines: 24px * 7 = 168px */
    line-height: 1.5;
    overflow-y: auto;
}

.centered-send-button {
    background: #333;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.centered-send-button:hover {
    background: #555;
    transform: scale(1.05);
}

.welcome-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 400;
}

.topic-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.topic-btn {
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #333;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.topic-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.topic-text {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.topic-icon {
    font-size: 16px;
    color: #666;
}

.message {
    display: flex;
    flex-direction: column;
    padding: 8px 32px;
    margin-bottom: 16px;
}

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

.message-tag {
    font-size: 9px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.message-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar {
    background: #333;
    color: white;
    font-weight: 600;
    font-size: 10px;
}

.message-content {
    max-width: 765px; /* 85% of 900px container */
    align-self: flex-start;
}

.message-text {
    color: #333;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    font-size: 15px; /* Reduced by 1px from default 16px */
}

.message-text p {
    margin-bottom: 4px; /* Tighter spacing */
    line-height: 1.5;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul,
.message-text ol {
    margin: 12px 0; /* Better spacing above and below lists */
    padding-left: 20px;
}

.message-text ol {
    list-style: decimal !important; /* Ensure numbered lists show 1, 2, 3, etc. */
    list-style-type: decimal !important; /* Force decimal numbering */
    counter-reset: none; /* Don't reset counters */
}

.message-text ul {
    list-style: disc; /* Ensure bullet lists show bullets */
}

.message-text li {
    margin-bottom: 6px; /* Better spacing between list items */
    line-height: 1.5;
    padding-left: 4px; /* Small padding for better text alignment */
}

/* Ensure proper spacing for nested content within list items */
.message-text li p {
    margin: 0; /* Remove default paragraph margins within list items */
}

.message-text li:last-child {
    margin-bottom: 0; /* Remove bottom margin from last item */
}

.message-text h1,
.message-text h2,
.message-text h3 {
    margin: 16px 0 8px 0; /* More space above for better separation */
    font-weight: 600;
    line-height: 1.3;
}

/* First heading in message should have less top margin */
.message-text h1:first-child,
.message-text h2:first-child,
.message-text h3:first-child {
    margin-top: 0;
}

/* When headings are immediately followed by lists, reduce the gap */
.message-text h1 + ul,
.message-text h1 + ol,
.message-text h2 + ul,
.message-text h2 + ol,
.message-text h3 + ul,
.message-text h3 + ol {
    margin-top: 4px; /* Tighter connection between heading and list */
}

.message-text h1 {
    font-size: 18px;
    color: #333;
}

.message-text h2 {
    font-size: 16px;
    color: #333;
}

.message-text h3 {
    font-size: 14px;
    color: #555;
}

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

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

.user-message .message-text {
    background: #333;
    color: white;
    border-color: #333;
}

.assistant-message .message-text {
    background: #fafafa;
    color: #333;
    border-color: #e9ecef;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    max-width: 550px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    padding: 24px 32px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    order: 1; /* Ensure input appears before disclaimer */
}

.chat-input-wrapper:focus-within {
    border-color: #000;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    max-height: 168px; /* 7 lines: 24px * 7 = 168px */
    min-height: 24px;
    padding: 6px 0;
    overflow-y: auto;
}

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

.send-button {
    background: #333;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-button:disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

.send-button:hover:not(:disabled) {
    background: #000;
    transform: scale(1.05);
}

.chat-disclaimer {
    text-align: center;
    order: 2; /* Ensure it appears after the input wrapper */
}

.chat-disclaimer p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.chat-history-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.chat-history-item:hover {
    background: #e9ecef;
}

.chat-history-item.active {
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.chat-preview {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chat-history-item:hover .chat-actions {
    opacity: 1;
}

.edit-chat-btn,
.star-chat-btn,
.delete-chat-btn {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.edit-chat-btn:hover {
    background: #f8f9fa;
    color: #007bff;
}

.star-chat-btn:hover {
    background: #f8f9fa;
    color: #ffc107;
}

.star-chat-btn.starred {
    color: #ffc107;
}

.star-chat-btn.starred:hover {
    color: #e0a800;
}

.delete-chat-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.filter-starred-btn.active {
    background: #ffc107;
    color: white;
}

.loading-conversations,
.no-conversations {
    padding: 20px 16px;
    text-align: center;
    color: #666;
}

.loading-conversations p,
.no-conversations p {
    margin: 0;
    font-size: 14px;
}

.no-conversations .text-muted {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.chat-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    display: block;
}



.chat-sidebar.collapsed .chat-actions {
    display: none;
}

.chat-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview-time {
    font-size: 11px;
    color: #999;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Login Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

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

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
}

.modal-footer a {
    color: #007bff;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    text-align: center;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.google-btn:hover {
    border-color: #4285F4;
}

.linkedin-btn:hover {
    border-color: #0077b5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chat-sidebar {
        width: 240px;
    }
    
    .chat-container {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 64px;
        padding: 0 16px;
    }
    
    .navigation {
        display: none;
    }
    
    .header-social {
        gap: 8px;
    }
    
    .header-social-link-wrapper {
        width: 33px;
        height: 33px;
    }
    
    .login-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .chat-sidebar {
        width: 240px;
    }
    
    .topic-buttons {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .chat-header {
        padding: 16px 20px;
    }
    
    .chat-title {
        font-size: 20px;
    }
    
    .chat-subtitle {
        font-size: 13px;
    }
    
    .message {
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    
    .chat-input-container {
        padding: 16px 20px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 16px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .chat-sidebar {
        display: none;
    }
    
    .welcome-screen {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .topic-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 280px;
    }
    
    .topic-btn {
        padding: 16px 12px;
    }
    
    .chat-title {
        font-size: 18px;
    }
    
    .message {
        padding: 12px 16px;
        margin-bottom: 16px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
    }
    
    .avatar-img {
        width: 24px;
        height: 24px;
    }
    
    .chat-input-container {
        padding: 12px 16px;
    }
    
    .chat-input-wrapper {
        padding: 10px 14px;
    }
    
    .send-button {
        width: 32px;
        height: 32px;
    }
}

/* Loading and Error States */
.loading-message {
    opacity: 0.7;
}

.error-message .message-content {
    background: #fee;
    border: 1px solid #fcc;
    padding: 16px 20px;
    border-radius: 8px;
}

.error-message .message-text {
    color: #c33;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Recommendations Styling */
.recommendations-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #e5ddd1 #f0ebe1; /* Darker than background #f0ebe1 */
}

.recommendations-scroll::-webkit-scrollbar {
    height: 6px;
}

.recommendations-scroll::-webkit-scrollbar-track {
    background: #f0ebe1; /* Same as container background */
    border-radius: 3px;
}

.recommendations-scroll::-webkit-scrollbar-thumb {
    background: #e5ddd1; /* Darker than background for contrast */
    border-radius: 3px;
}

.recommendations-scroll::-webkit-scrollbar-thumb:hover {
    background: #d9cfc0; /* Even darker on hover */
}

.recommendation-card {
    min-width: 200px;
    max-width: 240px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recommendation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.recommendation-card:active {
    transform: translateY(0);
}

/* Markdown formatting in messages */
.message-text strong {
    font-weight: 600;
    color: inherit;
}

.message-text em {
    font-style: italic;
    color: inherit;
}

.message-text code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.user-message .message-text code {
    background: rgba(255, 255, 255, 0.2);
}

.message-text pre {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 60px 8px 8px; /* Extra right padding for buttons */
    margin: 2px 0; /* Minimal spacing */
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    white-space: pre; /* No wrapping by default */
    max-width: 100%;
}

.user-message .message-text pre {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-text pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Code block action buttons for regular code blocks in AI responses */
.message-text pre.regular-code-block {
    position: relative;
}

.message-text pre.regular-code-block .code-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.message-text pre.regular-code-block:hover .code-actions {
    opacity: 1;
}

.message-text pre.regular-code-block .code-action-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.message-text pre.regular-code-block .code-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.message-text pre.regular-code-block .code-action-btn.copied {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    transform: none; /* Prevent hover transform when copied */
}

.message-text pre.regular-code-block .code-action-btn.copied:hover {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    transform: none; /* Prevent hover transform when copied */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure proper alignment for copied state text */
.message-text pre.regular-code-block .code-action-btn.copied svg {
    margin-right: 2px;
}

.message-text pre.regular-code-block .code-action-btn.copied {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
}

.message-text pre.regular-code-block .code-action-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Copy button styling */
.message-text pre.regular-code-block .copy-code-btn {
    min-width: 60px; /* Ensure enough space for "Copy" text */
}

/* Wrap toggle button styling */
.message-text pre.regular-code-block .wrap-toggle-btn {
    min-width: 32px; /* Just for the icon */
}

/* Wrap toggle state */
.message-text pre.wrapped {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* Code Block Wrapper */
.code-block-wrapper {
    margin: 0; /* No external spacing */
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #ffffff;
    display: block;
}

.code-block-header {
    background: #f8f9fa;
    padding: 4px 8px; /* Very compact padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 10px;
    min-height: 24px; /* Ensure consistent height */
    margin: 0; /* No margins */
}

.code-type {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
}

.code-actions {
    display: flex;
    gap: 4px;
}

.code-action-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.code-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.code-action-btn svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.code-block {
    margin: 0 !important; /* Override general pre margin */
    border: none;
    border-radius: 0;
    background: #ffffff;
    padding: 8px !important; /* Override general pre padding */
}

.json-code {
    background: #f8fff8 !important;
}

.user-message .code-block-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.user-message .code-type {
    color: rgba(255, 255, 255, 0.8);
}

.user-message .code-action-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.user-message .code-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Function Call Code Blocks */
.function-code-block {
    margin: 4px 0; /* Minimal spacing */
    width: 100%;
}

.function-code-block .code-block-wrapper {
    background: #f0ebe1; /* Same as recommendations background */
    border: 1px solid #e5ddd1;
    border-radius: 12px;
    padding: 16px; /* More generous padding around the entire block */
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.function-code-block .code-block-header {
    background: transparent; /* Remove header background since wrapper has it */
    border-bottom: 1px solid #e5ddd1;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.function-code-block .code-block {
    background: #ffffff !important; /* White background for code content */
    border: 1px solid #e5ddd1;
    border-radius: 6px;
    padding: 16px !important; /* Generous padding inside code for better readability */
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-title {
    font-size: 10px;
    color: #888;
    font-weight: 400;
    font-style: italic;
}

/* Language-specific styling */
.json-code {
    background: #f8fff8 !important;
}

.javascript-code {
    background: #fff8f0 !important;
}

.html-code {
    background: #fff5f5 !important;
}

.css-code {
    background: #f0f8ff !important;
}

.python-code {
    background: #f8f8ff !important;
}

.sql-code {
    background: #f5f8ff !important;
}

.bash-code {
    background: #f8f8f5 !important;
}

.yaml-code {
    background: #fff8f5 !important;
}

.xml-code {
    background: #f5fff8 !important;
}

.markdown-code {
    background: #f8f5ff !important;
}

.text-code {
    background: #ffffff !important;
}

/* Icon-only buttons for compact display */
.code-action-btn.icon-only {
    padding: 2px;
    width: 20px;
    height: 18px;
    justify-content: center;
}

.code-action-btn.icon-only svg {
    margin: 0;
}





.message-text a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.message-text a:hover {
    color: #0052a3;
}

.user-message .message-text a {
    color: #87ceeb;
}

.user-message .message-text a:hover {
    color: #b0e0e6;
}

/* Settings Icon Button */
.settings-icon-btn {
    background: transparent;
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    position: relative;
}

.settings-icon-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* Compact Settings Dropdown */
.settings-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 280px; /* Wider to accommodate inline model dropdown */
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.settings-dropdown.show {
    transform: translateY(0);
}

.settings-dropdown-content {
    padding: 8px 12px; /* Reduced top/bottom padding from 12px to 8px */
}

.compact-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0; /* Reduced from 8px to 6px */
    gap: 12px;
}

.compact-setting:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.compact-setting-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

/* Compact Toggle Switch */
.compact-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.compact-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.compact-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.compact-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.compact-toggle input:checked + .compact-slider {
    background: #333;
}

.compact-toggle input:checked + .compact-slider:before {
    transform: translateX(18px);
}

/* Compact Model Select */
.compact-model-select {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 130px; /* Increased from 100px to 130px for better model name display */
    flex-shrink: 0;
}

.compact-model-select:focus {
    outline: none;
    border-color: #333;
}

.compact-model-select:hover {
    background: #ffffff;
    border-color: #dee2e6;
}

/* Login Required Prompt */
.login-required-prompt {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #333;
}

.login-prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-prompt-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}

.login-prompt-text {
    flex: 1;
}

.login-prompt-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.login-prompt-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.login-prompt-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.login-prompt-btn:hover {
    background: #555;
    transform: translateY(-1px);
}



/* API Key Required Prompt */
.api-key-required-prompt {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #007bff;
}

.api-key-prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.api-key-prompt-icon {
    width: 48px;
    height: 48px;
    background: #e7f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    flex-shrink: 0;
}

.api-key-prompt-text {
    flex: 1;
}

.api-key-prompt-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.api-key-prompt-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.api-key-prompt-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.api-key-prompt-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Responsive design for API key prompt */
@media (max-width: 768px) {
    .api-key-prompt-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .api-key-prompt-text {
        text-align: center;
    }

    .api-key-prompt-btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* API Key Required Banner */
.api-key-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 12px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.api-key-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.api-key-banner-icon {
    color: #007bff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.api-key-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.api-key-banner-text strong {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.api-key-banner-text span {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.api-key-banner-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.api-key-banner-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.api-key-banner-btn:active {
    transform: translateY(0);
}

.api-key-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.api-key-refresh-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.api-key-refresh-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.api-key-refresh-btn:active {
    transform: translateY(0);
}

/* Welcome Screen API Key Banner */
.welcome-api-key-banner {
    margin: 20px auto;
    max-width: 600px;
}

/* Responsive design for API key banner */
@media (max-width: 768px) {
    .api-key-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .api-key-banner-text {
        width: 100%;
    }

    .api-key-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .api-key-banner-btn {
        flex: 1;
        justify-content: center;
    }

    .api-key-refresh-btn {
        flex-shrink: 0;
        min-width: 40px;
    }

    .welcome-api-key-banner {
        margin: 16px 20px;
        max-width: none;
    }
}

/* Responsive design for login prompt */
@media (max-width: 768px) {
    .login-prompt-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .login-prompt-text {
        text-align: center;
    }

    .login-prompt-btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* Centered Login Prompt Styles (for welcome screen) */
.centered-login-prompt {
    margin: 16px 0;
    text-align: center;
}

.centered-login-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    max-width: 600px; /* Same max-width as centered input */
    justify-content: center;
}

.centered-login-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.centered-login-btn:active {
    transform: translateY(0);
}

.centered-login-btn svg {
    flex-shrink: 0;
}

/* Login Required Prompt Styles (for bottom of page - kept for compatibility) */
.login-required-prompt {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
}

.login-to-use-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.login-to-use-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-to-use-btn:active {
    transform: translateY(0);
}

.login-to-use-btn svg {
    flex-shrink: 0;
}

/* Bottom chat input - hidden by default */
#bottomChatInput {
    display: none;
}

