#chatbot-box {
    width: 100%;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
}

#chat-output {
    height: 450px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #ccc;
}

.user-msg, .bot-msg {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 5px;
}

.user-msg {
    background: #e8f4ff;
}

.bot-msg {
    background: #f1ffe5;
    margin-left: 50px;
}

#chat-input {
    width: 70%;
    padding: 9px;
}

#chat-send {
    width: 28%;
    padding: 10px;
    background: #72B33E;
    color: white;
    border: none;
    border-radius: 5px;
}

/* Unique loader CSS for Chatbot PDF Search */
.cbps-loader-box {
    display: flex;
    align-items: left;
    gap: 10px;
    padding: 8px;
    background: #fff9d9;
    border: 1px solid #ffe58a;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #8a6d00;
}

.cbps-loader {
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top-color: #72B33E;
    border-radius: 50%;
    animation: cbps-spin 0.8s linear infinite;
}

@keyframes cbps-spin {
    to { transform: rotate(360deg); }
}

/* Optional: Bubbles unique names */
.cbps-user-msg {
    background: #e8f4ff !important;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 12px;
}

.cbps-bot-msg {
    background: #f1ffe5 !important;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 12px;
}

/* Chatbot Header */
.cbps-chat-header {
    background: #0b1b3f;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.cbps-chat-title {
    font-size: 18px;
    font-weight: 700;
}

.cbps-chat-status {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cbps-online-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #4CAF50;
}

/* Input area styling */
.cbps-input-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.cbps-bot-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* Bubble wrapper */
.cbps-bubble {
    max-width: 80%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
}

/* User bubble */
.cbps-user {
    background: #c9e2ff;
    align-self: flex-start;
}

/* Bot bubble */
.cbps-bot {
    background: #b0e6b4;
    margin-left: auto;
}

/* Meta line (name + time) */
.cbps-meta {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
}

/* Text */
.cbps-text {
    font-size: 15px;
    color: #222;
}

.cbps-text ul {
    margin-bottom: -10px !important;
}

/* Loader box */
.cbps-loader-box {
    display: flex;
    flex-direction: column;
}

/* Loader */
.cbps-loader {
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top-color: #2a7f2a;
    border-radius: 50%;
    animation: cbps-spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes cbps-spin {
    to { transform: rotate(360deg); }
}

/* Bot Icon */
.cbps-bot-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
    margin-right: 8px;
}


/* Download PDF */
/* PDF BOX */
.cbps-pdf-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e9f8ff;
    border: 1px solid #bfe8ff;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.cbps-pdf-box:hover {
    background: #dff3ff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

/* Left content */
.cbps-pdf-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cbps-pdf-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* PDF info */
.cbps-pdf-info {
    display: flex;
    flex-direction: column;
}

.cbps-pdf-label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    margin-bottom: 2px;
}

.cbps-pdf-name {
    font-size: 15px;
    font-weight: 600;
    color: #0077cc;
    text-decoration: none;
}

.cbps-pdf-name:hover {
    text-decoration: underline;
}

/* Download button */
.cbps-pdf-download {
    background: #0077cc75;
    color: white;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

.cbps-pdf-download:hover {
    background: #005fa3;
    transform: translateY(-1px);
}

/* Page number text */
.cbps-pdf-page {
    margin-top: 6px;
    font-weight: 600;
    color: #2c3e50;
}
