/* Chat-specific styling that extends the app.css branding */
.chat-identity-banner {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(66, 92, 199, 0.25);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(231, 243, 255, 0.95), rgba(255, 255, 255, 0.98));
    color: #243746;
    font-size: 14px;
    font-weight: 500;
}

.chat-identity-banner strong {
    color: #425CC7;
}

.chat-identity-banner.chat-identity-banner--warning {
    border-color: rgba(199, 138, 46, 0.35);
    background: linear-gradient(135deg, rgba(255, 244, 229, 0.95), rgba(255, 255, 255, 0.98));
}

.chat-identity-banner.chat-identity-banner--warning strong {
    color: #C77A2E;
}

/* Boot gate. The server decides availability, but /api_config is a network
   round-trip away, and index.html ships the chat UI visible -- so without
   this the chat screen paints for a moment before the kill-switch takeover
   applies. `chat-booting` is set in the markup and cleared by chat.js
   applyChatAvailability() once CHAT_ENABLED is known, so neither state is
   shown until one of them is correct. visibility (not display) keeps the
   layout stable so nothing reflows when it resolves.
   Note: this is cosmetic only. The kill switch is enforced server-side in
   chatbot-agents.py (/chat and /chat/stream both refuse while it's on), so
   the flash never let anyone actually use a disabled chatbot. */
body.chat-booting .sidebar-wrapper,
body.chat-booting .main-wrapper {
    visibility: hidden;
}

/* Fallback for the gate above, so the page can never stay blank forever.
   Two triggers, one layout:
   - chat.js never ran at all (blocked, 404, or a CDN script before it took
     the page down): no chat-js-alive class, so this pure-CSS timer reveals
     the card after 12s. It needs no script at all.
   - chat.js ran but init never reached the /api_config fetch (e.g. jQuery
     missing, so it threw on its first jQuery call): chat.js's watchdog adds
     chat-boot-stalled. NOT the same clock as this timer -- this delay
     starts when chat.css first applies (after every render-blocking
     stylesheet has loaded), chat.js counts from navigation -- so chat.js
     checks whether this card is actually showing rather than comparing
     times; a late-starting chat.js never cancels a card already shown.
     Keep the 12s here roughly equal to _NOVA_BOOT_DEADLINE_MS in chat.js.
   Either way ONLY the outage card is shown, full width like the
   JS-rendered outage state; its Contact Us link is static markup and works
   without JS. While chat.js is alive and healthy none of this applies, so
   a normal boot -- however slow /api_config is -- can't be pre-empted by
   the CSS timer (chat.js owns the deadline once it runs). */
@keyframes chat-boot-fallback {
    to { visibility: visible; }
}
body.chat-booting:is(:not(.chat-js-alive), .chat-boot-stalled) .sidebar-wrapper {
    display: none;
}
body.chat-booting:is(:not(.chat-js-alive), .chat-boot-stalled) .main-wrapper {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}
/* Collapse -- not just hide -- the rest of the chat UI, so the card gets the
   whole column instead of sharing .main-wrapper's fixed height with
   invisible rows (which could squeeze or clip it on a short viewport). */
body.chat-booting:is(:not(.chat-js-alive), .chat-boot-stalled) .main-wrapper > :not(#chatUnavailableState) {
    display: none !important;
}
body.chat-booting:is(:not(.chat-js-alive), .chat-boot-stalled) #chatUnavailableState {
    /* Beats Bootstrap's .d-none, which is also !important (id > class). */
    display: flex !important;
}
body.chat-booting:not(.chat-js-alive) #chatUnavailableState {
    animation: chat-boot-fallback 0s linear 12s forwards;
}
body.chat-booting.chat-boot-stalled #chatUnavailableState {
    visibility: visible;
}

/* Kill-switch "chat unavailable" takeover -- shown immediately on page load
   (see chat.js applyChatAvailability(), driven by /api_config's
   CHAT_ENABLED field), not only after a visitor tries to send a message.
   Replaces the entire chat UI (title, streaming toggle, chat window, input,
   rating) with a single centered card filling .main-wrapper's flex column,
   so it's centered both horizontally and vertically. */
.chat-unavailable-state {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 0;
}

.chat-unavailable-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.chat-unavailable-card .chat-unavailable-icon {
    font-size: 2.5rem;
    color: #DC2626;
    margin-bottom: 0.75rem;
}

.chat-unavailable-card h1 {
    color: #243746;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.chat-unavailable-card p {
    color: #6f7271;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.chat-unavailable-card .chat-service-down-cta {
    display: inline-block;
    background-color: #425CC7;
    border-color: #425CC7;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    border-radius: 8px;
}

.chat-unavailable-card .chat-service-down-cta:hover {
    background-color: #3a4eb5;
    border-color: #3a4eb5;
    color: #fff;
}

#chatWindow {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    border: 2px solid var(--rf-bg-panel);
    padding: 5px;
    background-color: var(--rf-bg-panel);
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
}

#loadingMessage {
    font-style: italic;
    color: #425CC7;
    font-weight: 600;
}

#loadingMessage.typing-status,
#loadingMessage.status-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 10px 6px;
    border-radius: 999px;
    border: 1px solid rgba(66, 92, 199, 0.2);
    background: linear-gradient(135deg, rgba(231, 243, 255, 0.9), rgba(255, 255, 255, 0.98));
    color: #243746;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(27, 45, 94, 0.08);
}

#loadingMessage.typing-status .spinner-border,
#loadingMessage.status-message i {
    color: #425CC7;
}

/* Styling for markdown-rendered content using brand colors */
#chatWindow h1, #chatWindow h2, #chatWindow h3, #chatWindow h4, #chatWindow h5, #chatWindow h6 {
    margin: 0.5em 0 0.3em 0;
    font-weight: bold;
    color: #243746;
}

#chatWindow ul, #chatWindow ol {
    margin: 0.5em 0 0.5em 1.5em;
}

#chatWindow li {
    margin: 0.2em 0;
}

#chatWindow p {
    margin: 0.5em 0;
    color: #243746;
}

#chatWindow code {
    background-color: #e9ecef;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-family: monospace;
    border: 1px solid #ced4da;
}

#chatWindow pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.8em;
    overflow-x: auto;
}

#chatWindow blockquote {
    border-left: 4px solid #425CC7;
    margin: 0.5em 0;
    padding-left: 1em;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.featured_image {
    width: 300px;
    float: right;
}

/* Message styling */
.user-message {
    font-family: Inter, sans-serif !important;
    font-weight: 300 !important;
    font-size: 14px !important;
    background-color: #e7f3ff;
    padding: 10px 20px;
    margin: 10px 5px;
    border-radius: 10px;
}

.user-message {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.user-message .message-icon-group{
    display: inline-block !important;
}

.user-message .message-icon-group strong{
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.user-message .message-icon-group strong .bi-icon {
    font-size: 20px !important;
}

.assistant-message {
    font-family: Inter, sans-serif !important;
    font-weight: 300 !important;
    font-size: 14px !important;
    background-color: #fff;
    padding: 10px 20px;
    margin: 10px 5px;
    border-radius: 10px;
}

.assistant-message .message-icon-group {
    display: block !important;
}

.assistant-message .message-icon-group strong {
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.assistant-message .message-icon-group strong img.bi-icon {
    height: 20px !important;
}

.user-message strong,
.assistant-message strong{
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Rating widget styling */
#ratingWidget {
    text-align: center;
    padding: 10px 20px;
    background-color: var(--rf-bg-panel-secondary);
    border-radius: 10px;
    border: 1px solid var(--rf-bg-panel-secondary);
}

#ratingWidget small {
    color: var(--rf-text-muted) !important;
}

.negative-feedback-note {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-left: 4px solid #425CC7;
    border-radius: 8px;
    background: #eef3fb;
    color: #243746;
    font-size: 0.9rem;
}

.negative-feedback-identity-note {
    margin-bottom: 0.5rem;
    color: #243746;
    font-size: 0.9rem;
}

#negativeFeedbackGuestFields {
    margin-bottom: 0.85rem;
}

.response-feedback-widget {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f2f5;
}

.response-feedback-widget .response-feedback-label {
    font-size: 11px;
    font-style: italic;
    color: #bbb;
    margin-right: 0.15rem;
}

.response-feedback-widget .response-feedback-smile,
.response-feedback-widget .response-feedback-frown {
    font-size: 13px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.15s;
}

.response-feedback-widget .response-feedback-smile:hover {
    color: #27ae60;
}

.response-feedback-widget .response-feedback-frown:hover {
    color: #e74c3c;
}

.response-feedback-widget .response-feedback-smile.active {
    color: #27ae60;
}

.response-feedback-widget .response-feedback-frown.active {
    color: #e74c3c;
}

#negativeFeedbackInput {
    min-height: 120px;
    resize: vertical;
}

.feedback-followup ul {
    margin-bottom: 0.5rem;
}

#negativeFeedbackStatus {
    color: #1f3a57;
}

#negativeFeedbackStatus.feedback-status-success {
    color: #1f7a3d;
}

#negativeFeedbackStatus.feedback-status-error {
    color: #bb1f2b;
}

#negativeFeedbackStatus.feedback-status-pending {
    color: #425cc7;
}

/* Input group styling */
.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input-group input{
    font-size: 14px !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    background-color: var(--rf-bg-lightgray) !important;
}

.chat-input-group input::placeholder {
    color: var(--rf-text-muted) !important;
    font-style: italic !important;
}

.chat-input-group button {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    text-transform: uppercase;
}

.input-group .form-control:focus {
    border-color: #425CC7;
    box-shadow: 0 0 0 0.2rem rgba(66, 92, 199, 0.25);
}

/* Chat history sidebar styling */
#historyList {
    background-color: var(--rf-bg-panel);
    border-right: 2px solid #dee2e6;
    height: calc(100vh - 120px);
    max-height: calc(100% - 144px) !important;
    overflow-y: auto;
    padding: 0px 0.5rem 0px 0px;
    border-radius: 0px 0px 10px 10px;
}

.history-item {
    border: 1px solid #dee2e6;
    border-radius: 0px 0px 10px 10px;
    margin-bottom: 8px;
    padding: 12px 12px 6px 12px;
    background-color: var(--rf-bg-panel-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background-color: #e7f3ff;
    border-color: #425CC7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-item.active {
    background-color: #425CC7;
    color: white;
    border-color: #243746;
}

.history-item.active:hover {
    background-color: #3a4eb5;
}

.history-title {
    font-weight: 600;
    font-size: 0.8em;
    margin-bottom: 4px;
}

.history-date {
    font-size: 0.75em;
    color: #6c757d;
    font-style: italic;
}

.history-item.active .history-date {
    color: rgba(255,255,255,0.8);
}

.history-preview {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item.active .history-preview {
    color: rgba(255,255,255,0.7);
}

.history-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.session-id-display {
    font-size: 0.75rem;
    color: #6c757d;
    padding-top: 0.25rem;
    text-align: right;
}

.history-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.history-delete-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.history-item.active .history-delete-btn {
    color: rgba(255,255,255,0.8);
}

.history-item.active .history-delete-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Streaming toggle styling */
.streaming-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--rf-bg-panel-secondary);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
    font-size: 14px !important;
}

.streaming-toggle small {
    color: var(--rf-text-muted) !important;
}

.streaming-badge {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Status indicator for streaming events */
.status-message {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 4px;
    font-style: italic;
    color: #856404;
}

.status-message.tool-call {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.status-message.agent-update {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

/* Typing indicator for streaming */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    font-size: 12px;
    font-style: italic;
    color: #6c757d;
    white-space: nowrap;
}

.typing-indicator .typing-label {
    color: inherit;
}

.typing-indicator .typing-dots {
    display: inline-flex;
    min-width: 14px;
}

.typing-indicator .typing-dots span {
    opacity: 0.2;
    animation: typingDotPulse 1.2s infinite ease-in-out;
}

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

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

.typing-indicator .typing-cursor {
    margin-left: 1px;
    animation: blink 1.1s infinite;
}

.typing-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    color: #425CC7;
    font-size: 13px;
    font-style: italic;
}

.typing-status .spinner-border {
    width: 0.9rem;
    height: 0.9rem;
    border-width: 0.12rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.product-list-gallery-layout {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.product-list-gallery-text {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.product-list-gallery-images {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.product-list-gallery-images .product-gallery {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
    overflow-y: visible;
    align-content: start;
}

.product-list-gallery-images .product-gallery-card {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.product-list-gallery-images .product-gallery-card img {
    height: 95px;
}

.product-list-gallery-images .product-gallery-card-body {
    padding: 8px;
}

.product-list-gallery-images .product-gallery-card-title {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.product-list-gallery-images .product-gallery-meta {
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.product-list-gallery-images .product-gallery-summary {
    font-size: 0.76rem;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-gallery-images .product-gallery-price {
    font-size: 0.74rem;
}

@media (max-width: 1440px) {
    .product-list-gallery-images .product-gallery-card img {
        height: 88px;
    }

    .product-list-gallery-images .product-gallery-card-body {
        padding: 7px;
    }

    .product-list-gallery-images .product-gallery-card-title {
        font-size: 0.74rem;
    }

    .product-list-gallery-images .product-gallery-meta {
        font-size: 0.66rem;
    }

    .product-list-gallery-images .product-gallery-summary {
        font-size: 0.7rem;
    }

    .product-list-gallery-images .product-gallery-price {
        font-size: 0.68rem;
    }
}

.product-gallery-card {
    border: 1px solid #dbe3f2;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(36, 55, 70, 0.06);
}

.product-gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    background: #eef3fb;
}

.product-gallery-card-body {
    padding: 14px;
}

.product-gallery-card-title {
    color: #243746;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    cursor: pointer;
}

.product-gallery-card-title:hover {
    color: #425CC7;
}

.product-gallery-meta {
    font-size: 0.82rem;
    color: #667789;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-gallery-summary {
    font-size: 0.9rem;
    color: #243746;
    margin-bottom: 10px;
}

.product-gallery-price {
    font-size: 0.88rem;
    color: #243746;
    font-weight: 600;
}

.product-gallery-price-sale {
    color: #1b7f3b;
}

.product-gallery-price.product-price-option-based {
    color: #c62828;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 19, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.product-lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.product-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 20px;
    align-items: start;
}

.product-detail-hero img {
    width: 100%;
    border-radius: 14px;
    cursor: zoom-in;
}

.product-detail-meta {
    color: #667789;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.product-detail-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.product-detail-price-pill {
    border-radius: 999px;
    padding: 6px 12px;
    background: #eef3fb;
    color: #243746;
    font-weight: 600;
}

.product-detail-price-pill.product-price-option-based {
    background: #fdecec;
    color: #c62828;
}

@media (max-width: 768px) {
    .product-detail-hero {
        grid-template-columns: 1fr;
    }

    .product-list-gallery-layout {
        flex-direction: column;
    }

    .product-list-gallery-images {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .product-list-gallery-images .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-height: none;
        overflow-y: visible;
    }
}

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

@keyframes typingDotPulse {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}


.dark-theme{
    background: var(--rf-bg-header) !important;
    padding: 0px !important;
}

.dark-theme header {
    background: var(--rf-bg-header) !important;
    padding: 1rem 3rem !important;
}

.dark-theme header .header-browsing-link,
.dark-theme header .header-browsing-link:visited {
    color: #fff !important;
    font-weight: normal !important;
    font-size: 12px !important;
}

.dark-theme header .user-dropdown button{
    background: transparent !important;
    border: 0px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 12px !important;
}

.dark-theme header .user-dropdown button .bi{
    font-size: 20px !important;
}

.dark-theme .main-container {
    background-image: url('../images/Texture-cast-iron.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1.5rem 5rem !important;
    margin: 0px;
    height: calc(100vh - 85px) !important;
    max-width: 100vw !important;
}

.dark-theme .main-container .container-fluid{
    height: calc(100% - 2rem);
}
.dark-theme .main-container .container-fluid .row{
    height: calc(100%);
}

.dark-theme .main-container .sidebar-wrapper{
    background: var(--rf-bg-panel) !important;
    border-radius: 10px !important;
    padding: 0.5rem 1rem 1rem 1rem !important;
    height: calc(100vh - 150px) !important;
}

.dark-theme .main-container .sidebar-wrapper .sidebar-item{
    border-bottom: 1px solid #9FA1A3;
    height: 48px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.dark-theme .main-container .sidebar-wrapper .sidebar-item h6 {
    font-size: 13px !important;
    line-height: 1.1;
    white-space: nowrap;
    margin-right: 6px;
}

.dark-theme .main-container .sidebar-wrapper .sidebar-item h6 i {
    font-size: 12px;
}

.dark-theme .main-container .sidebar-wrapper .sidebar-item:hover {
    background-color: var(--rf-bg-lightgray) !important;
    border-radius: 10px !important;
    cursor: pointer;
}

.dark-theme .main-container .main-wrapper{
    height: calc(100vh - 150px) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dark-theme .main-container .main-wrapper #chatTitle {
    color: #fff !important;
    font-weight: bold !important;
}

@media screen and (max-width: 1600px) {
    .dark-theme header {
        padding: 1rem 1rem !important;
    }

    .dark-theme .main-container {
        padding: 1rem !important;
    }

    .dark-theme .main-container .sidebar-wrapper .sidebar-item {
        height: 32px !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    .dark-theme .main-container .sidebar-wrapper .sidebar-item h6 {
        font-size: 12px !important;
    }
}

@media screen and (max-width: 991px) {
    .dark-theme .main-container .sidebar-wrapper{
        height: auto !important;
        max-height: calc(100vh - 150px) !important;
    }

    .dark-theme .main-container .main-wrapper{
        height: calc(100vh - 350px) !important;
        margin-top: 2rem !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

}




@media screen and (max-width: 400px) {
    .dark-theme .main-container .main-wrapper{
        margin-top: 1rem !important;
    }

    #chatWindow{
        min-height: 230px;
    }
}

@media screen and (max-width: 1440px) {
    .dark-theme .main-container .sidebar-wrapper .sidebar-item h6 {
        font-size: 12px !important;
    }

    .dark-theme .main-container .sidebar-wrapper .sidebar-item h6 i {
        font-size: 11px;
    }
}
