body {
    font-family: 'Roboto', sans-serif;
    background-color: #050505; /* True dark mode */
    color: white;
}

.app-container {
    height: 100vh;
    padding: 15px; /* Add spacing on all sides */
    gap: 15px; /* Add some space between sidebar and chat window */
    overflow: hidden; 
}

@media (max-width: 768px) {
    .app-container {
          height: 100dvh; /* Dynamic viewport height for modern browsers */
    }
}

.card {
    background-color: transparent;
    border: none !important;
    border-radius: 12px;
    padding: 15px;
    max-height: 100%;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-main .card {
    padding-bottom: 0 !important;
}

/* Chat bubbles */
.chat-message {
    display: flex;
    margin-bottom: 10px;
    flex-direction: column; /* stack content vertically */
    align-items: center;
}


.bubble {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
}

.user {
    justify-content: flex-end;
}

.user-bubble {
    background-color: #0d6efd; /* Bootstrap primary */
    color: white;
    border-bottom-right-radius: 5px;
}

.bot {
    justify-content: flex-start;

}

.chat-main {
    background-color: transparent;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-sidebar .list-group-item.active {
    border: none !important;
    background-color: #0d0d0d;
}


#chat-window {
    flex-grow: 1;           /* take all remaining vertical space */
    overflow-y: auto;       /* enable scrolling */
}

.chat-main .chat-input-form {
    position: relative;
    margin: 0;
    margin-top: -65px;
    padding: 0;
    background: transparent;
    flex-shrink: 0;
    z-index: 10;
}

.chat-button {
    background-color: darkmagenta;
    margin-bottom: 10px;
}
.list-group-item{
    background-color: transparent;
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
}

.delete-chat-btn {
    padding: 0.1rem 0.3rem; /* shrink padding */
    font-size: 1.2rem;      /* smaller text */
    line-height: 1;         /* tighter height */
    width: 1.6rem;          /* optional fixed width */
    height: 1.6rem;
    margin-right: 10px;      /* optional fixed height */
    background-color: transparent;
    border-color: transparent;
    color: darkred;
}




/* Keep your chat bubble styles from before */

.chat-landing {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertically center */
    text-align: center;
    position: relative;
}

.chat-landing h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
}

.chat-landing .chat-input-form {
    width: 50%;
    display: flex;
    position: static;
    margin: 0 auto;
}

.chat-landing .chat-input {
    height: 70px;        /* bigger input */
    font-size: 1.2rem;   /* larger text */
    border-radius: 20px 0 0 20px;
    padding: 15px;
    flex-grow: 1;        /* fill available space */
}

.chat-landing .chat-input-form button {
    height: 70px;        /* match input height */
    font-size: 1.2rem;   /* match input font size */
    border-radius: 0 20px 20px 0;
    padding: 0 20px;     /* optional: horizontal padding */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .chat-landing .chat-input-form {
        width: 80%;
        flex-direction: row; /* keep input + button side by side */
    }
}

.chat-input:focus,
.input-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    box-shadow: none;            /* remove the blue glow in Bootstrap */
    outline: none;               /* remove default outline */
}

.chat-landing .landing-logo {
    width: 120px;      /* adjust size as needed */
    height: auto;
    object-fit: contain;
}


/* Modal overall */
#sourceModal .modal-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    color: #f1f1f1;
    border-radius: 16px;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    border: 1px solid #333;
}

/* Modal header */
#sourceModal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
}

/* Modal title */
#sourceModal .modal-title {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Modal body */
#sourceModal .modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: calc(90vh - 130px);
    overflow: hidden;
}

#sourceModal .source-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

#sourceModal .source-info-item {
    background-color: rgba(255,255,255,0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
}

#sourceModal .source-info-item strong {
    display: block;
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

#sourceModal .source-info-item a {
    color: #4da6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    word-break: break-word;
    font-size: 0.9rem;
}

#sourceModal .source-info-item a:hover {
    color: #80b8ff;
    text-decoration: underline;
}

#sourceModal .source-info-item p {
    margin: 0;
    color: #f1f1f1;
    word-break: break-word;
    font-size: 0.9rem;
}

#sourceModal .modal-body pre {
    background-color: #2c2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e8e8e8;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

#sourceModal .modal-body .formatted-content {
    background-color: #2c2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 1rem;
    word-wrap: break-word;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e8e8e8;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

#sourceModal .modal-body .formatted-content p {
    margin-bottom: 0.8rem;
}

#sourceModal .modal-body .formatted-content h1, 
#sourceModal .modal-body .formatted-content h2,
#sourceModal .modal-body .formatted-content h3,
#sourceModal .modal-body .formatted-content h4 {
    color: #66b0ff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#sourceModal .modal-body .formatted-content ul,
#sourceModal .modal-body .formatted-content ol {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

#sourceModal .modal-body .formatted-content code {
    background-color: rgba(255,255,255,0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #e685b5;
}

/* Ensure scrollbar works for the new container too */
#sourceModal .modal-body .formatted-content::-webkit-scrollbar {
    width: 8px;
}
#sourceModal .modal-body .formatted-content::-webkit-scrollbar-track {
    background: transparent; 
}
#sourceModal .modal-body .formatted-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2); 
    border-radius: 4px; 
}
#sourceModal .modal-body .formatted-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3); 
}

#sourceModal .modal-body pre::-webkit-scrollbar {
    width: 8px;
}

#sourceModal .modal-body pre::-webkit-scrollbar-track {
    background-color: #2c2c2c;
    border-radius: 4px;
}

#sourceModal .modal-body pre::-webkit-scrollbar-thumb {
    background-color: #4a4a4a;
    border-radius: 4px;
}

#sourceModal .modal-body pre::-webkit-scrollbar-thumb:hover {
    background-color: #5a5a5a;
}

/* Modal footer */
#sourceModal .modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
}

/* Close button */
#sourceModal .btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#sourceModal .btn-close:hover {
    opacity: 1;
}

/* Scrollbar styling for modal-body */
#sourceModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#sourceModal .modal-body::-webkit-scrollbar-track {
    background-color: transparent;
}

#sourceModal .modal-body::-webkit-scrollbar-thumb {
    background-color: #4a4a4a;
    border-radius: 4px;
}

#sourceModal .modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #5a5a5a;
}


.bubble .btn-secondary {
    font-size: 0.8rem;
}

/* styles.css */
.htmx-indicator {
    display: none; /* hidden by default */
}

.htmx-indicator.htmx-request {
    display: inline-block; /* show during request */
}
.btn-text.htmx-request {
    display: none;
}
.btn-text.htmx-indicator {
    display: inline-block;
}
.spinner {
    margin-right: 10px;
    margin-top: 10px;
    width: 1rem;  /* default is 1rem */
    height: 1rem;
    border-width: 0.25em; /* thicker border */
    
}




/*style imporvements below!!!!! */




/* Container for example prompts */
.example-prompts {
    display: flex;
    flex-wrap: wrap;       /* allows prompts to wrap onto multiple lines */
    justify-content: center;
    gap: 8px;              /* space between chips */
}

/* Individual example buttons */
.example-prompts .example-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    border-radius: 10px;    /* pill shape */
    padding: 8px 16px;      /* vertical and horizontal padding */
    font-size: 0.9rem;
    cursor: pointer;
    white-space: normal;    /* allow text to wrap */
    text-align: center;
    transition: all 0.2s ease-in-out;
    line-height: 1.3;       /* supports multi-line text nicely */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
}

/* Hover effect */
.example-prompts .example-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.25);
}

/* Optional: add a subtle shadow for more depth */
.example-prompts .example-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

#input-div {
    display: flex;
    align-items: center;
    gap: 8px;             /* space between input and button */
    width: 100%;           /* full width of container */
}

.chat-input-width-limiter {
    max-width: 50%;
    margin: 0 auto;
}



#input-div .chat-input {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    padding: 22px 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    min-height: 70px;
    height: 70px;
    resize: none;
    overflow-y: hidden;
    border-radius: 25px;
}

/* Input focus effect */
#input-div .chat-input:focus {
    border: none;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

#input-div .btn {
    height: 70px;
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 0;
    border: none;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#input-div .btn:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
}

/* Spinner spacing */
#input-div .spinner {
    margin-left: 6px;
}

/* Sidebar container */
.chat-sidebar {
      background: rgba(255, 255, 255, 0.08); /* slightly lighter than the app-container */
    display: flex;
    flex-direction: column;
    width: 260px;
    padding: 1.5rem 1rem;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    position: relative;
    height: 100%; /* Fill available height minus app-container padding */
}


/* Sidebar headings */
.chat-sidebar h4 {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem; /* smaller */
    margin: 0;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.95);
    border: none;
    flex-shrink: 0;
}

.chat-sidebar h6 {
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    text-transform: uppercase;
    font-size: 0.7rem; /* smaller */
    letter-spacing: 0.8px;
    opacity: 0.75;
    flex-shrink: 0;
}

/* Chat list */
.chat-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: 5rem;
    margin: 0;
    margin-bottom: -3.5rem;
    border: none !important;
    border-top: none !important;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 5rem), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 5rem), transparent 100%);
}

/* Override Bootstrap list-group styling */
.chat-list.list-group {
    border: none !important;
    background: none !important;
}

.chat-list.list-group-flush {
    --bs-list-group-border-color: transparent !important;
}

/* Chat items */
/* Individual chat items */
.chat-list .list-group-item {
    background-color: rgba(255, 255, 255, 0.08);
    border: none !important;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease-in-out;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.chat-list .list-group-item:first-child {
    border-top: none !important;
    margin-top: 0;
}

/* Hover effect */
.chat-list .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Active chat */
.chat-list .list-group-item.active {
    background-color: rgba(0, 123, 255, 0.35);
    border: none !important;
    color: white;
}


/* Chat links */
.chat-list .list-group-item a {
    flex-grow: 1;
    display: block;
    padding: 0.6rem 0.6rem;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.chat-list .list-group-item a:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Delete button */
.delete-chat-btn {
    flex-shrink: 0;
    padding: 0 6px;
    margin-right: 2px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease-in-out;
    background: transparent;
}

.delete-chat-btn:hover {
    background-color: #ff4d4f;
    color: white;
}

/* New chat button container */
.chat-sidebar .mt-auto {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* New chat button */
.chat-sidebar a.btn-primary {
    border-radius: 25px;
    font-weight: 600;
    padding: 14px 28px;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(0, 86, 179, 0.6));
    border: none;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
    display: block;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.chat-sidebar a.btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    color: white;
}


/* Chat window container */
#chat-window {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px; /* space between messages */
    padding-right: 8px; /* avoid scrollbar overlap */
    padding-bottom: 7rem;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 5.5rem), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 5.5rem), transparent 100%);
}

/* User chat bubble */
.user-bubble {
    align-self: flex-end; /* right side */
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    color: white;
    padding: 12px 18px;
    border-radius: 22px 22px 10px 22px; /* slightly different on tail side */
    max-width: 70%;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 0.98rem;
    line-height: 1.3;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.user-bubble p {
    margin: 0;
}

/* Optional subtle hover effect */
.user-bubble:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}



/* Chat scroll behavior */
#chat-window::-webkit-scrollbar {
    width: 6px;
}
#chat-window::-webkit-scrollbar-track {
    background: transparent;
}
#chat-window::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* Timestamp / meta info inside bubbles (optional) */
.chat-bubble-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    text-align: right;
}

/* Animate new messages */
#chat-window .chat-bubble {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(5px);}
    to {opacity: 1; transform: translateY(0);}
}




/* Sources toggle link */
.sources-toggle {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #66b0ff;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease-in-out;
}

.sources-toggle:hover {
    color: #99cfff;
}





/* Collapse spacing */
.collapse {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
}

/* User chat bubble */
.user-bubble {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    color: white;
    padding: 14px 22px;         /* slightly bigger */
    border-radius: 22px 22px 10px 22px;
    max-width: 80%;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 1.02rem;         /* just a bit larger text */
    line-height: 1.3;
    display: inline-block;
}

.user-bubble p {
    margin: 0;
}



/* Bot chat bubble */
.bot-bubble {
    align-self: center; /* left side */
    /*background-color: rgba(255,255,255,0.08);*/
    background-color: transparent;
    color: white;
    padding: 10px 16px;
    /*border-radius: 20px 20px 20px 4px; */
    max-width: 70%;
    word-wrap: break-word;
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
    /*font-size: 0.95rem;*/
    line-height: 1.8;

}
.sidebar-link {
    color: #FFFFFF;
    text-decoration: none;
}

.sidebar-title,
.sidebar-icon,
.sidebar-text {
    transition: all 0.25s ease-in-out;
}
.chat-sidebar:hover{
    color: #1e90ff;
    text-shadow: 0 0 8px rgba(30,144,255,0.6);
    transform: scale(1.01);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Mouseover effect for main title */
.sidebar-link:hover .sidebar-title {
    color: #1e90ff;
    text-shadow: 0 0 8px rgba(30,144,255,0.6);
    transform: scale(1.08);
}

.sidebar-link:hover .sidebar-icon {
    transform: scale(1.5);
    filter: drop-shadow(0 0 8px rgba(30,144,255,0.8));
}

/* Chat items hover effect */
.chat-link {
    transition: all 0.2s ease-in-out;
}

.chat-link:hover {
    transform: scale(1.05);
    color: #1e90ff;
    text-shadow: 0 0 6px rgba(30,144,255,0.5);
}
.chat-list .list-group-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    transform-origin: center;
    position: relative;
}

.chat-list .list-group-item:hover {
    transform: scale(0.97); /* slightly smaller */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* optional subtle shadow */
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.file-display-box {
    display: none;
    padding: 10px 15px;
    background-color: rgba(13, 110, 253, 0.15);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 8px;
    color: #4da6ff;
    font-size: 0.9rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.file-display-box.active {
    display: flex;
}

.file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background-color: rgba(77, 166, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
}

.file-item-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-remove {
    background: none;
    border: none;
    color: #4da6ff;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.file-item-remove:hover {
    color: #ff6b6b;
}

#file-clear-btn {
    background: none;
    border: none;
    color: #4da6ff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    margin-left: auto;
    transition: color 0.2s ease;
}

#file-clear-btn:hover {
    color: #ff6b6b;
}

.input-group {
    display: flex;
    gap: 14px;
    background: transparent;
}

.form-control.chat-input {
      border: none !important;
      outline: none !important;
      border-radius: 25px;
      min-height: 70px;
      height: 70px;
      padding: 20px 16px 12px 16px;
      line-height: 1.5;
      resize: none;
      overflow-y: hidden;
    color: white;
      background-color: rgba(255, 255, 255, 0.08);
    line-height: 1.5;
  }

.form-control.chat-input::placeholder, #input-div .chat-input::placeholder {
    color: #cccccc !important;
    opacity: 1;
}

.form-control.chat-input:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.25);
}

.form-control.chat-input:focus {
    transform: scale(1.02);
    box-shadow:
    0 0 12px rgba(220, 220, 220, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -8px 18px rgba(255, 255, 255, 0.06);
}

.btn-upload {
    flex-shrink: 0;
    padding: 14px 20px;
    border: none;
    background-color: #2a2a2a;
    color: #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 0;
    margin: 0;
    height: 70px;
}

.btn-upload:hover {
    background-color: #333;
    color: #ffffff;
}

.btn-upload:active {
    background-color: #1f1f1f;
}

#input-div .btn.btn-primary {
    flex-shrink: 0;        
    padding: 14px 28px;
    border: none;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(0, 86, 179, 0.6));
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 20px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#input-div .btn.btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}
/* Example buttons */


/* Hover effect: glow + subtle pop */
.example-prompts .example-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(220, 220, 220, 0.1); /* glow effect */
}
/* Hover: slightly bigger, no glow */
#input-div .chat-input:hover:not(:focus) {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

#input-div .chat-input:focus {
    outline: none;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow:
        0 4px 12px rgba(13,110,253,0.4);
    border-color: #0d6efd;
}



.chat-message table {
  display: table;
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
}

.chat-message table {
    border-collapse: separate;  /* allow rounded corners */
    border-spacing: 0;          /* remove gaps between cells */
    border-radius: 12px;        /* round the table corners */
    overflow: hidden;           /* clip inner cells */
    width: 100%;
    border: 2px solid #007bff;  /* blue accent border */
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15); /* subtle blue shadow */
}

.chat-message thead {
  display: table-header-group;
}

.chat-message tbody {
  display: table-row-group;
}

.chat-message tr {
  display: table-row;
}

.chat-message th,
.chat-message td {
  display: table-cell;
  border: 1px solid #444;
  padding: 8px 12px;
  vertical-align: top;
  text-align: left;
}

.chat-message th {
  background: linear-gradient(135deg, #1a5a96 0%, #0d3d6b 100%);  /* blue gradient header */
  font-weight: 600;
  color: #e0f1ff;  /* light blue text */
  border-bottom: 2px solid #007bff;  /* blue bottom border */
}

.chat-message tbody tr:nth-child(even) {
  background-color: rgba(0, 123, 255, 0.05);  /* very subtle blue tint on even rows */
}

.chat-message tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.12);  /* slightly stronger blue on hover */
  transition: background-color 0.2s ease;
}


/* Modernisierte Source Buttons */
.source-btn {
    display: inline-block;
    margin: 0;                       /* Removed margin, relying on flex gap */
    padding: 4px 10px;               /* slightly reduced padding */
    font-size: 0.8rem;               /* slightly smaller */
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05); /* dezent transparent */
    color: #ffffff;
    border: none;   /* feiner Rand */
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* subtile Tiefe */
    font-weight: 500;
}

/* Hover-Effekt: Farbe und leichtes Heben */
.source-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05); /* leichter Pop */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.25);
}

/* Optional: aktiver Zustand, wenn ausgewählt */
.source-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,110,253,0.4);
}

/* Status Indicator (Streaming) */
.status-indicator {
    background: rgba(13, 110, 253, 0.15); /* Tinted blue background */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: #6ea8fe; /* Light blue text */
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: status-pulse 2s infinite ease-in-out;
    margin-left: 2px;
}

.status-indicator::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6ea8fe;
    box-shadow: 0 0 8px rgba(110, 168, 254, 0.8);
    animation: status-dot-blink 1.5s infinite ease-in-out;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.2);
        border-color: rgba(13, 110, 253, 0.3);
    }
    50% {
        box-shadow: 0 0 10px 2px rgba(13, 110, 253, 0.3);
        border-color: rgba(13, 110, 253, 0.6);
        background: rgba(13, 110, 253, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.2);
        border-color: rgba(13, 110, 253, 0.3);
    }
}

@keyframes status-dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}
