/* Homepage & Card Styles */
.welcome-banner {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.welcome-banner h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.welcome-banner p {
    font-size: 1.1rem;
    color: #adb5bd;
    max-width: 600px;
    margin: 0 auto;
}

.topics-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: #e9ecef;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.prompt-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #f8f9fa;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.prompt-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.prompt-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.prompt-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.prompt-card p {
    font-size: 0.95rem;
    color: #adb5bd;
    flex-grow: 1;
}

.prompt-card .launch-btn {
    margin-top: 1rem;
    padding: 10px 16px;
    background: linear-gradient(45deg, #d92626, #a61010);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

/* Logo and Header Styles */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

/* Logo styles for index.html */
.logo-large {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.3s ease;
}

.logo-large:hover {
    transform: scale(1.05);
}

/* Navigation styles */
.primary-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 1rem;
}

.primary-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
    
.primary-nav .nav-link:hover,
.primary-nav .nav-link.active {
    background: linear-gradient(45deg, rgb(222, 34, 38), rgb(222, 34, 38));
    color: #fff;
}

/* Guides page layout */
.guides-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Guides grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.prompt-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.prompt-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Guide page styles */
.guide-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
}

.guide-sidebar {
    margin-left: 0.5rem;
    flex: 0 0 300px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 80px; /* below nav */
}
.sidebar-heading {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.sidebar-text {font-size: 0.95rem; margin-bottom: 1rem; color:#ccc;}
.sidebar-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    font-family: inherit;
    resize: vertical;
}
.sidebar-form .btn {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 20px;
    background: linear-gradient(45deg, rgb(222, 34, 38), rgb(222, 34, 38));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sidebar-form .btn:hover {background: rgb(190, 28, 32);}  /* darker red */

/* Back link pill style */
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(45deg, rgb(222, 34, 38), rgb(222, 34, 38));
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.back-link i { margin-right: 6px; }
.back-link:hover { opacity: 0.9; }

/* Guide content table styling */
.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.guide-content th,
.guide-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}
.guide-content th {
    font-weight: 600;
}
.guide-content tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guide-content td:first-child,
.guide-content th:first-child {
    width: 90px;
}

/* Embedded chat iframe */
.embedded-chat {
    width: 100%;
    height: 600px;
    border: none;
    margin-top: 1rem;
}
.hidden {display:none;}

/* section divider via headings */
.guide-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ff4b57;
    margin-top: 0.5rem;
}
.guide-container {
    flex: 1 1 auto;
    max-width: 900px;
    margin: 0;
    padding: 3rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

/* Guide typography */
.guide-content {
    color: #e5e5e5;
    line-height: 1.75;
    font-size: 1.05rem;
}
.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-content h4 {
    color: #ffffff;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.guide-content h1 {font-size: 2.2rem;}
.guide-content h2 {font-size: 1.8rem;}
.guide-content h3 {font-size: 1.4rem;}

.guide-content p {margin-bottom: 1rem;}
.guide-content ul,
.guide-content ol {margin-left: 1.5rem; margin-bottom: 1rem;}

.guide-content a {color: #ff4b57; text-decoration: underline;}
.guide-content a:hover {opacity: 0.85;}

.guide-content blockquote {
    border-left: 4px solid #ff4b57;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #ccc;
    font-style: italic;
    background: rgba(255,255,255,0.02);
}

.guide-content pre,
.guide-content code {
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
}

.guide-content img {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    border-radius: 8px;
}
.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.guide-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.guide-content {
    line-height: 1.6;
}
.guide-content h1,
.guide-content h2,
.guide-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.guide-content img {
    max-width: 100%;
    height: auto;
}

/* Logo styles for chat.html */
.chat-header .logo-small {
    width: 200px;
    height: auto;
    margin-right: 15px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.chat-header .logo-small:hover {
    transform: scale(1.05);
}

.logo-container h1 {
    margin: 10px 0 0;
    font-size: 2.5em;
    color: #333;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header h1 {
    font-size: 2.8rem;
    margin: 0;
    color: rgb(222, 34, 38);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.header p {
    font-size: 1.2rem;
    color: #888;
    font-weight: 300;
    margin-bottom: 30px;
}

.search-container {
    max-width: 800px;  /* Increased from 600px */
    margin: 0 auto 40px;
    position: relative;
    width: 90%;  /* Added for better responsiveness */
}

.search-input {
    width: 100%;
    padding: 22px 70px 22px 25px;  /* Increased padding for better proportions */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 71, 87, 0.4);  /* Slightly more visible border */
    border-radius: 20px;  /* Slightly more rounded corners */
    color: white;
    font-size: 1.2rem;  /* Slightly larger font */
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 65px;  /* Increased minimum height */
}

.search-input:focus {
    border-color: rgb(222, 34, 38);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

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

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(rgb(222, 34, 38));
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Home page welcome banner adjustments */
.welcome-banner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px; /* more breathing room */
}
.welcome-banner h1 {
    margin-bottom: 12px;
}
.welcome-banner p {
    margin-bottom: 32px;
}

/* Bring topics section a little closer */
.topics-section {
    margin-top: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.prompt-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 71, 87, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.prompt-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 71, 87, 0.08);
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.2);
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(rgb(222, 34, 38));
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.prompt-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: rgb(222, 34, 38);
}

.prompt-card p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
}

.prompt-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
    border-left: 3px solid rgb(222, 34, 38);
}

.launch-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(45deg, rgb(222, 34, 38));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.prompt-card:hover .launch-btn {
    opacity: 1;
    transform: translateY(0);
}

.launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(255, 71, 87, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.response-modal {
    max-width: 800px;
    max-height: 80vh;
}

.module-header i {
    transition: transform 0.3s ease;
}

.module-header.active i {
    transform: rotate(180deg);
}

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

.close-btn {
    background: none;
    border: none;
    color: rgb(222, 34, 38);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 71, 87, 0.1);
}

.response-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ddd;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.modal h2 {
    margin-bottom: 20px;
    color: rgb(222, 34, 38);
}

.modal textarea {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    padding: 16px;
    color: white;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(rgb(222, 34, 38));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.api-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 100;
}

.api-status.connected {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.api-status.disconnected {
    background: rgba(231, 76, 60, 0.2);
    color: rgb(222, 34, 38);
    border: 1px solid rgb(222, 34, 38);
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(rgb(222, 34, 38));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}


/* Dashboard Welcome and Stats */
.welcome-content {
    padding: 2rem;
    background-color: #2c2f33;
    border-radius: 8px;
    text-align: center;
}

.welcome-content h2 {
    margin-bottom: 1rem;
}

.welcome-content p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto; /* Center the paragraph and add margin */
    line-height: 1.6;
    color: #adb5bd;
    text-align: center; /* Explicitly center the text */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: #23272a;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #404040;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

.stat-label {
    font-size: 1rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

/* Chat Page Specific Styles */
.chat-page-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-container-standalone {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(255, 71, 87, 0.3);
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 71, 87, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 90%, rgba(255, 71, 87, 0.03) 0%, transparent 20%);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.chat-header h2 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.close-chat-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-chat-btn:hover {
    color: rgb(222, 34, 38);
}

    .chat-messages {
        flex-grow: 1;
        padding: 25px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        background-color: #1a1a1a;
        background-image: 
            linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
        background-size: 20px 20px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    }

    .chat-messages a {
        color: rgb(222, 34, 38);
        text-decoration: none;
        font-weight: 500;
        transition: opacity 0.2s ease;
    }

    .chat-messages a:hover {
        opacity: 0.9;
        text-decoration: underline;
    }

    .message {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .message.user {
        justify-content: flex-end;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        min-width: 35px; /* Prevent shrinking */
        min-height: 35px; /* Prevent shrinking */
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.1rem;
        color: white;
    }

    .message.user .message-avatar {
        background: rgb(222, 34, 38);
    }

    .message.assistant .message-avatar {
        background: #444;
    }

    .message-content {
        padding: 12px 18px;
        border-radius: 12px;
        max-width: 75%;
        line-height: 1.6;
        color: #ddd;
        word-wrap: break-word; /* Ensure long words break */
        white-space: pre-wrap; /* Preserve whitespace and line breaks */
    }

    .message.user .message-content {
        background: rgb(222, 34, 38);
        background: linear-gradient(45deg, rgb(222, 34, 38), rgb(222, 34, 38));
        align-self: flex-end; /* Align user messages to the right */
    }

    .message.assistant .message-content {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 71, 87, 0.15);
        align-self: flex-start; /* Align assistant messages to the left */
    }

    /* Typing indicator for assistant */
    .typing-indicator {
        display: flex;
        gap: 4px;
        padding: 8px 0;
    }

    .typing-indicator span {
        width: 8px;
        height: 8px;
        background-color: #bbb;
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out;
    }

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

    .typing-indicator span:nth-child(3) {
        animation-delay: -0.32s;
    }

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

    .chat-input-area {
        padding: 20px 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(26, 26, 26, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        gap: 12px;
        align-items: flex-end;
        position: relative;
        z-index: 10;
    }

    .chat-input-area textarea {
        flex-grow: 1;
        min-height: 50px; /* Minimum height for input */
        max-height: 150px; /* Max height before scrolling */
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 71, 87, 0.3);
        border-radius: 12px;
        color: white;
        font-size: 1rem;
        resize: none; /* Disable manual resizing */
        outline: none;
        transition: border-color 0.3s ease;
    }

    .chat-input-area textarea:focus {
        border-color: rgb(222, 34, 38);
    }

    .send-message-btn {
        background: linear-gradient(45deg, rgb(222, 34, 38), rgb(222, 34, 38));
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 1.3rem;
        padding: 15px 20px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px; /* Match min-height of textarea */
    }

    .send-message-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    }

    .send-message-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .loading-indicator {
        display: none !important; /* Completely hide the loading indicator */
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .loading-dot {
        display: none !important;
    }

    /* Error message styling */
    .message-content .error {
        color: rgb(222, 34, 38);
        font-weight: bold;
    }
    /* API Status Indicator */
    .api-status {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 100;
    }

    .api-status.connected {
        color: #4CAF50;
    }

    .api-status.disconnected {
        color: #f44336;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .chat-container-standalone {
            height: 100%;
            max-height: none;
            border-radius: 0;
            border: none;
        }

        .chat-page-body {
            padding: 0;
        }

        .chat-header {
            padding: 15px;
        }

        .message-content {
            max-width: 85%;
        }

        .chat-input-area {
            padding: 15px;
        }
    }