/* ===================================================================
   EduClick AI Assistant (Technical & Sales) Stylesheet
   Design: Modern Glassmorphic, Vibrant Gradients, Micro-animations
   =================================================================== */

:root {
    --cb-primary: #4f46e5;
    --cb-primary-hover: #4338ca;
    --cb-primary-light: #eef2ff;
    --cb-tech-grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --cb-sales-grad: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --cb-bg-glass: rgba(255, 255, 255, 0.95);
    --cb-bg-dark: #1e293b;
    --cb-text-main: #0f172a;
    --cb-text-muted: #64748b;
    --cb-border: #e2e8f0;
    --cb-radius: 16px;
    --cb-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating Launcher Button */
.edu-chatbot-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cb-tech-grad);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    outline: none;
}

.edu-chatbot-launcher:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.6);
}

.edu-chatbot-launcher .cb-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* Chatbot Container */
.edu-chatbot-container {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 640px;
    max-height: calc(100vh - 120px);
    background: var(--cb-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                right 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.edu-chatbot-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Expanded State: Covers 50% of the window */
.edu-chatbot-container.expanded {
    width: 50vw !important;
    min-width: 520px !important;
    max-width: 90vw !important;
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    bottom: 20px !important;
    right: 20px !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 1024px) {
    .edu-chatbot-container.expanded {
        width: 65vw !important;
        min-width: 460px !important;
    }
}

@media (max-width: 768px) {
    .edu-chatbot-container.expanded {
        width: calc(100vw - 20px) !important;
        min-width: auto !important;
        max-width: calc(100vw - 20px) !important;
        height: calc(100vh - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        bottom: 10px !important;
        right: 10px !important;
        border-radius: 14px !important;
    }
}

/* Header */
.edu-chatbot-header {
    background: var(--cb-tech-grad);
    color: #ffffff;
    padding: 16px 20px;
    position: relative;
    transition: background 0.4s ease;
}

.edu-chatbot-container.mode-sales .edu-chatbot-header {
    background: var(--cb-sales-grad);
}

.edu-chatbot-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.edu-chatbot-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.edu-chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.edu-chatbot-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.edu-chatbot-status {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edu-chatbot-status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.edu-chatbot-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edu-chatbot-btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    outline: none;
}

.edu-chatbot-btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

/* Tab Switcher (Technical vs Sales) */
.edu-chatbot-tabs {
    display: flex;
    flex: 1;
    min-width: 0;
    margin: 0 12px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    padding: 3px;
    position: relative;
}

.edu-chatbot-tab {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 6px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edu-chatbot-tab.active {
    background: #ffffff;
    color: var(--cb-text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Chat Messages Area */
.edu-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    background: #f8fafc;
}

/* Message Bubbles */
.edu-chat-msg {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: cbFadeIn 0.3s ease;
}

.edu-chat-msg.has-form,
.edu-chat-msg.has-table {
    max-width: 98% !important;
    width: 98% !important;
}

.edu-chat-msg.has-form .edu-chat-bubble,
.edu-chat-msg.has-table .edu-chat-bubble {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Expanded state overrides for messages */
.edu-chatbot-container.expanded .edu-chatbot-messages {
    padding: 20px 24px;
    gap: 16px;
}

.edu-chatbot-container.expanded .edu-chat-msg {
    max-width: 96%;
}

.edu-chatbot-container.expanded .edu-chat-bubble {
    font-size: 14px;
    padding: 14px 20px;
}

.edu-chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.edu-chat-msg.bot {
    align-self: flex-start;
}

.edu-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.edu-chat-msg.bot .edu-chat-avatar {
    background: var(--cb-primary-light);
    color: var(--cb-primary);
}

.edu-chat-msg.user .edu-chat-avatar {
    background: #e2e8f0;
    color: var(--cb-text-muted);
}

.edu-chat-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.edu-chat-msg.bot .edu-chat-bubble {
    background: #ffffff;
    color: var(--cb-text-main);
    border: 1px solid var(--cb-border);
    border-top-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.edu-chat-msg.user .edu-chat-bubble {
    background: var(--cb-primary);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.edu-chatbot-container.mode-sales .edu-chat-msg.user .edu-chat-bubble {
    background: #ec4899;
}

.edu-chat-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.65;
    text-align: right;
}

/* Markdown formatting in bubble */
.edu-chat-bubble p {
    margin: 0 0 6px 0;
}
.edu-chat-bubble p:last-child {
    margin-bottom: 0;
}
.edu-chat-bubble code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
}
.edu-chat-msg.user .edu-chat-bubble code {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.edu-chat-bubble pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 11.5px;
    margin: 6px 0;
}

/* Card in Chat */
.edu-chat-card {
    background: #ffffff;
    border: 1px solid var(--cb-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.edu-chat-card-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--cb-primary);
    margin-bottom: 4px;
}

.edu-chat-card-subtitle {
    font-size: 11px;
    color: var(--cb-text-muted);
    margin-bottom: 8px;
}

.edu-chat-card-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 12px;
}

.edu-chat-field-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.edu-chat-field-label {
    color: var(--cb-text-muted);
    font-weight: 500;
}

.edu-chat-field-val {
    font-weight: 600;
    color: var(--cb-text-main);
}

/* Table in Chat */
.edu-chat-table-wrapper {
    overflow-x: auto;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid var(--cb-border);
}

.edu-chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: #fff;
}

.edu-chat-table th {
    background: #f1f5f9;
    padding: 6px 8px;
    text-align: left;
    font-weight: 700;
    color: var(--cb-text-main);
    border-bottom: 1px solid var(--cb-border);
}

.edu-chat-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f8fafc;
    color: #334155;
}

.edu-chat-table tr:hover td {
    background: #f8fafc;
}

/* Action Chips */
.edu-chatbot-chips {
    padding: 8px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.edu-chatbot-chips::-webkit-scrollbar {
    display: none;
}

.edu-chat-chip {
    background: var(--cb-primary-light);
    color: var(--cb-primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.edu-chat-chip:hover {
    background: var(--cb-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Footer / Input Bar */
.edu-chatbot-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid var(--cb-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-chatbot-input {
    flex: 1;
    border: 1px solid var(--cb-border);
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.edu-chatbot-input:focus {
    border-color: var(--cb-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.edu-chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cb-primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 14px;
}

.edu-chatbot-send-btn:hover {
    background: var(--cb-primary-hover);
    transform: scale(1.05);
}

.edu-chatbot-upload-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--cb-text-muted);
    border: 1px solid var(--cb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 15px;
}

.edu-chatbot-upload-btn:hover {
    background: #e2e8f0;
    color: var(--cb-primary);
}

/* Typing Indicator */
.edu-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.edu-chat-typing span:not(.edu-chat-typing-note) {
    width: 6px;
    height: 6px;
    background: var(--cb-text-muted);
    border-radius: 50%;
    animation: cbBounce 1.4s infinite ease-in-out both;
}

.edu-chat-typing span:nth-child(1) { animation-delay: -0.32s; }
.edu-chat-typing span:nth-child(2) { animation-delay: -0.16s; }

.edu-chat-typing-note {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 11px;
    color: var(--cb-text-muted);
    animation: none;
}

.edu-chat-typing-note:empty {
    display: none;
}

/* File upload drop preview */
.edu-chatbot-file-preview {
    background: #e0e7ff;
    border: 1px dashed var(--cb-primary);
    border-radius: 8px;
    padding: 6px 12px;
    margin: 8px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--cb-primary);
}

/* Keyframes */
@keyframes cbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===================================================================
   Interactive Entry Form Styles
   =================================================================== */
.edu-chat-form-container {
    background: #ffffff;
    border: 1px solid var(--cb-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    animation: cbFadeIn 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.edu-chat-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.edu-chat-form-title-group {
    flex: 1;
    min-width: 0;
}

.edu-chat-form-expand-toggle {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--cb-primary);
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.edu-chat-form-expand-toggle:hover {
    background: var(--cb-primary-light);
    border-color: var(--cb-primary);
    transform: translateY(-1px);
}

.edu-chatbot-container.mode-sales .edu-chat-form-expand-toggle {
    color: #ec4899;
}
.edu-chatbot-container.mode-sales .edu-chat-form-expand-toggle:hover {
    background: #fdf2f8;
    border-color: #ec4899;
}

/* Expanded Form Styling inside 50% Window */
.edu-chatbot-container.expanded .edu-chat-form-container {
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

.edu-chatbot-container.expanded .edu-chat-form-grid {
    gap: 12px 18px;
}

.edu-chatbot-container.expanded .edu-chat-form-label {
    font-size: 12px;
}

.edu-chatbot-container.expanded .edu-chat-form-input,
.edu-chatbot-container.expanded .edu-chat-form-select,
.edu-chatbot-container.expanded .edu-chat-form-textarea {
    padding: 9px 12px;
    font-size: 13.5px;
    border-radius: 9px;
}

.edu-chatbot-container.expanded .edu-chat-form-submit-btn {
    padding: 10px 26px;
    font-size: 14px;
}

.edu-chat-form-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cb-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.edu-chatbot-container.mode-sales .edu-chat-form-title {
    color: #ec4899;
}

.edu-chat-form-subtitle {
    font-size: 11.5px;
    color: var(--cb-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.edu-chat-form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px 10px;
}

.edu-chat-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-chat-form-group.col-12 {
    grid-column: span 12;
}

.edu-chat-form-group.col-6 {
    grid-column: span 6;
}

.edu-chat-form-group.col-4 {
    grid-column: span 4;
}

.edu-chat-form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--cb-text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.edu-chat-form-label .req {
    color: #ef4444;
    font-weight: 700;
}

.edu-chat-form-input,
.edu-chat-form-select,
.edu-chat-form-textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--cb-text-main);
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.edu-chat-form-input:focus,
.edu-chat-form-select:focus,
.edu-chat-form-textarea:focus {
    background: #ffffff;
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.edu-chatbot-container.mode-sales .edu-chat-form-input:focus,
.edu-chatbot-container.mode-sales .edu-chat-form-select:focus,
.edu-chatbot-container.mode-sales .edu-chat-form-textarea:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.edu-chat-form-input.has-error,
.edu-chat-form-select.has-error,
.edu-chat-form-textarea.has-error {
    border-color: #ef4444 !important;
    background: #fff5f5;
}

.edu-chat-form-error {
    font-size: 10px;
    color: #ef4444;
    margin-top: 2px;
}

.edu-chat-form-textarea {
    resize: vertical;
    min-height: 50px;
}

.edu-chat-form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.edu-chat-form-submit-btn {
    background: var(--cb-tech-grad);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.edu-chatbot-container.mode-sales .edu-chat-form-submit-btn {
    background: var(--cb-sales-grad);
    box-shadow: 0 3px 10px rgba(236, 72, 153, 0.25);
}

.edu-chat-form-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(79, 70, 229, 0.35);
}

.edu-chat-form-submit-btn:disabled {
    cursor: not-allowed;
}

.edu-chat-form-submit-btn.loading {
    opacity: 0.8;
}

/* ===================================================================
   Bulk Student Upload & Multi-Student Review Form Styles
   =================================================================== */
.edu-chat-file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
}

.edu-chat-file-dropzone:hover,
.edu-chat-file-dropzone.dragover {
    border-color: var(--cb-primary);
    background: var(--cb-primary-light);
}

.edu-chat-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dropzone-icon {
    font-size: 26px;
    color: var(--cb-primary);
    margin-bottom: 2px;
}

.dropzone-text {
    font-size: 12px;
    color: var(--cb-text-main);
}

.dropzone-sub {
    font-size: 10.5px;
    color: var(--cb-text-muted);
}

.dropzone-badge {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    padding: 3px 10px;
}

/* Multi-Student Review Cards */
.edu-chat-student-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 4px;
}

.edu-chat-student-cards-list::-webkit-scrollbar {
    width: 5px;
}
.edu-chat-student-cards-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.edu-chat-student-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.edu-chat-student-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.edu-chat-student-card.is-excluded {
    opacity: 0.45;
    background: #f8fafc;
    border-style: dashed;
}

.student-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.student-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-card-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
}

.student-card-check {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--cb-primary);
}

.student-card-num {
    font-size: 11px;
    font-weight: 700;
    background: var(--cb-primary-light);
    color: var(--cb-primary);
    padding: 1px 6px;
    border-radius: 4px;
}

.student-card-name-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-text-main);
}

.cb-status-pill {
    font-size: 9.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pill-valid {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pill-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.student-card-remove-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.student-card-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.edu-chat-btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--cb-text-main);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.edu-chat-btn-outline:hover {
    border-color: var(--cb-primary);
    color: var(--cb-primary);
    background: var(--cb-primary-light);
}

.edu-chat-multi-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .edu-chatbot-container {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .edu-chat-form-group.col-6,
    .edu-chat-form-group.col-4 {
        grid-column: span 12;
    }
}
