html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* Message Bubbles */
.msg-user {
    text-align: right;
    margin-bottom: 10px;
}

    .msg-user span {
        background: #007bff;
        color: white;
        padding: 8px 14px;
        border-radius: 15px 15px 0 15px;
        display: inline-block;
    }

.msg-ai {
    text-align: left;
    margin-bottom: 10px;
}

.msg-ai-box {
    background: #e9ecef;
    color: #333;
    padding: 10px 14px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 90%;
}

/* Citation Links */
/* .citation-link {
        color: #d63384;
        font-weight: bold;
        text-decoration: none;
        font-size: 0.9em;
        background: #fff0f6;
        padding: 2px 6px;
        border-radius: 4px;
        border: 1px solid #fcc2d7;
        margin-left: 4px;
    }

        .citation-link:hover {
            text-decoration: underline;
        } */

/* Suggestion Chips */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chip {
    background: white;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
}

    .chip:hover {
        background: #007bff;
        color: white;
    }
/* Add this to your <style> block */

.msg-ai-box ul {
    margin: 5px 0 5px 20px; /* Indent the list */
    padding: 0;
}

.msg-ai-box li {
    margin-bottom: 4px; /* Space between bullet points */
}

.msg-ai-box b, .msg-ai-box strong {
    font-weight: 600;
    color: #0056b3; /* Optional: Make bold text slightly blue */
}
/* Table Styling for AI Responses */
.msg-ai-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px; /* Keep it small for the widget */
    background: white;
}

.msg-ai-box th {
    background-color: #007bff;
    color: white;
    padding: 6px;
    text-align: left;
    border: 1px solid #ddd;
}

.msg-ai-box td {
    border: 1px solid #ddd;
    padding: 6px;
    color: #333;
}

.msg-ai-box tr:nth-child(even) {
    background-color: #f9f9f9; /* Zebra striping for readability */
}
/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    #chat-window {
        /* 1. Force width to fit the mobile screen */
        width: 90% !important;
        /* 2. Center the window (4% left + 4% right + 92% width = 100%) */
        right: 4% !important;
        left: 4% !important;
        /* 3. Adjust height so it doesn't cover the whole screen */
        height: 70vh !important;
        bottom: 80px !important;
        /* 4. Ensure it sits on top */
        z-index: 99999 !important;
    }

    /* Optional: Move the trigger button slightly if needed */
    #chat-trigger {
        bottom: 15px !important;
        right: 15px !important;
    }
}