/* ==========================================================================
   CII Edu-Tech Expo 2026 - AI Assistant Design System & Styling
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cii-dark: #104549;
    --cii-darker: #092c2f;
    --cii-teal: #126369;
    --cii-cyan: #18bcc7;
    --cii-cyan-light: #e6f9fa;
    --cii-accent: #30b6db;
    --cii-gold: #f5a623;
    --cii-gold-light: #fff8eb;
    --cii-red: #e5202e;
    --bg-gradient: linear-gradient(135deg, #072224 0%, #0d383c 50%, #104549 100%);
    --surface-white: #ffffff;
    --surface-light: #f8fafc;
    --surface-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-soft: #64748b;
    --border-color: #e2e8f0;
    --border-highlight: #bbf0f4;
    --shadow-sm: 0 2px 8px rgba(16, 69, 73, 0.08);
    --shadow-md: 0 8px 24px rgba(16, 69, 73, 0.14);
    --shadow-lg: 0 20px 50px rgba(7, 34, 36, 0.28);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    color: var(--text-main);
}

/* Chat container frame */
.chat-container {
    width: 100%;
    max-width: 880px;
    height: 92vh;
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

/* Header Area */
.chat-header-wrapper {
    background: linear-gradient(180deg, #dcf4f6 0%, #f3fbfe 100%);
    border-bottom: 1px solid var(--border-highlight);
    padding-bottom: 8px;
}

.chat-header {
    background: linear-gradient(135deg, #092c2f 0%, #104549 60%, #13555a 100%);
    color: #ffffff;
    padding: 12px 18px;
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid rgba(24, 188, 199, 0.45);
    border-radius: var(--radius-md);
    margin: 10px 12px 4px 12px;
    box-shadow: 0 6px 18px rgba(9, 44, 47, 0.28);
    position: relative;
    overflow: hidden;
    gap: 12px;
}

.chat-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(24, 188, 199, 0.2) 0%, rgba(24, 188, 199, 0) 70%);
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
    flex: 1;
    overflow: hidden;
}

/* Visible White CII Logo Container on Dark Background */
.cii-logo-badge {
    background: #061e20;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--cii-cyan);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cii-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Header Banner Image (edulogo.jpg) */
.header-banner-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    flex-shrink: 1;
    max-width: 440px;
}

.header-edulogo-img {
    height: 44px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.status-indicator-capsule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--cii-dark);
    background: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--cii-cyan);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   2-Row Equal Space Category Status Bar (Non-Scrollable)
   ========================================================================== */
.category-status-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; /* not scrollable */
    width: 100%;
}

.category-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f0f9fa;
    padding: 9px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid #d1eff2;
    color: var(--cii-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    width: 100%;
    box-shadow: 0 1px 3px rgba(16, 69, 73, 0.04);
}

.category-box:hover {
    background: var(--cii-dark);
    color: #ffffff;
    border-color: var(--cii-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-icon-wrapper {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon-wrapper svg {
    width: 15px;
    height: 15px;
}

.category-box:hover .category-icon-wrapper svg {
    stroke: #ffffff;
}

/* ==========================================================================
   Chat Messages & Avatars
   ========================================================================== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: var(--surface-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    animation: slideIn 0.25s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 90%;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row;
    justify-content: flex-end;
}

/* Message Avatar Icons */
.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.bot-avatar {
    background: linear-gradient(135deg, #0a2d30 0%, #104549 100%);
    border: 1.5px solid var(--cii-cyan);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 69, 73, 0.25);
}

.bot-avatar svg {
    width: 18px;
    height: 18px;
    stroke: var(--cii-cyan);
}

.user-avatar {
    background: linear-gradient(135deg, #104549 0%, #18bcc7 100%);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(24, 188, 199, 0.3);
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
}

.message-content {
    flex: 1;
    max-width: 100%;
}

.message-text {
    background: var(--surface-white);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    line-height: 1.55;
    font-size: 14px;
    color: var(--text-main);
    border: 1px solid #eef2f6;
}

.user-message .message-text {
    background: linear-gradient(135deg, #104549 0%, #17656c 100%);
    color: #ffffff;
    border: none;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(16, 69, 73, 0.2);
}

.bot-message .message-text {
    border-top-left-radius: 4px;
}

/* Welcome Card */
.welcome-container {
    background: linear-gradient(135deg, #f7fdfe 0%, #ffffff 100%);
    border: 1.5px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.welcome-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--cii-dark);
    margin-bottom: 12px;
}

.welcome-title span {
    color: #128c94;
}

.welcome-sub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.welcome-sub-card.flex-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-sub-card.highlight-theme {
    background: #eef9fa;
    border-left: 4px solid var(--cii-cyan);
    color: var(--cii-dark);
}

.welcome-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.welcome-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cii-dark);
    margin: 0;
}

.welcome-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.welcome-bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.welcome-bullet-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-muted);
}

.welcome-bullet-list li::before {
    content: '▪';
    color: var(--cii-cyan);
    font-size: 16px;
    position: absolute;
    left: 4px;
    top: -2px;
}

/* Welcome Timing Breakdown Grid */
.welcome-timings-block {
    margin-top: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.welcome-timings-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--cii-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.welcome-timings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.welcome-timing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.welcome-timing-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.welcome-timing-day {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cii-dark);
}

.welcome-timing-desc {
    font-size: 11px;
    color: var(--text-soft);
    line-height: 1.3;
}

.welcome-timing-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    width: fit-content;
    margin-top: 2px;
}

/* ==========================================================================
   Response Cards
   ========================================================================== */
.response-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.card-header {
    background: linear-gradient(135deg, #104549 0%, #155c61 100%);
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.collapse-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.response-card.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.card-content {
    padding: 14px;
    transition: all 0.25s ease;
}

.card-content.collapsed {
    display: none;
}

/* Conference & Workshop Session Cards */
.conf-sessions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.session-card.conf-theme {
    border-left: 4px solid var(--cii-cyan);
    background: #fbfdfe;
}

.session-card.workshop-theme {
    border-left: 4px solid var(--cii-gold);
    background: #fffdf9;
}

.session-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.session-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.session-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.badge-conference {
    background: var(--cii-cyan-light);
    color: #0f7680;
    border: 1px solid #c2eef2;
}

.badge-workshop {
    background: var(--cii-gold-light);
    color: #b46b00;
    border: 1px solid #fae1b4;
}

.session-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
}

.session-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cii-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.session-speaker, .session-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.session-desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-muted);
    margin-top: 6px;
}

.session-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.session-reg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cii-dark);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

.session-reg-btn:hover {
    background: var(--cii-cyan);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Schedule Layout */
.schedule-layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .schedule-layout {
        flex-direction: column;
    }
}

.schedule-image-container {
    flex: 1;
    min-width: 200px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.schedule-image-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.schedule-image-container img:hover {
    transform: scale(1.02);
}

.zoom-hint {
    font-size: 12px;
    color: #128c94;
    margin-top: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.schedule-list-container {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    background: #ffffff;
    border-left: 3px solid var(--cii-cyan);
    border: 1px solid #eef2f6;
    border-left-width: 3px;
    border-radius: 6px;
    padding: 10px 12px;
}

.schedule-item h4 {
    font-size: 14px;
    color: var(--cii-dark);
    font-weight: 700;
    margin-bottom: 3px;
}

.schedule-item p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.schedule-item .desc {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-soft);
}

/* Facilities */
.facilities-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facility-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px;
}

.facility-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.facility-title-row h4 {
    font-size: 14.5px;
    color: var(--cii-dark);
    font-weight: 700;
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.status-badge.available {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.facility-item .loc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.facility-item .desc {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.4;
}

/* Q&A Items */
.qa-item {
    margin-bottom: 12px;
    background: #fcfdfe;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-sm);
    padding: 12px;
}

.qa-item:last-child {
    margin-bottom: 0;
}

.qa-item h4 {
    font-size: 14.5px;
    color: var(--cii-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.qa-answer-body {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

.chat-link {
    display: inline-flex;
    align-items: center;
    color: #128c94 !important;
    font-weight: 700;
    text-decoration: underline !important;
    margin: 3px 0;
    transition: color 0.15s ease;
}

.chat-link:hover {
    color: var(--cii-dark) !important;
}

/* Timings */
.timings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
}

.day-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cii-dark);
}

.time-badge {
    font-size: 13px;
    font-weight: 700;
    color: #0d9488;
    background: #f0fdfa;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ccfbf1;
}

.timings-notice {
    margin-top: 12px;
    padding: 10px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.45;
}

/* ==========================================================================
   2-Row Equal Space Quick Actions Menu (Non-Scrollable)
   ========================================================================== */
.chat-input-container {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 12px 14px;
    position: relative;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    overflow: hidden; /* not scrollable */
    width: 100%;
}

.quick-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.quick-btn:hover {
    background: var(--cii-cyan);
    color: #ffffff;
    border-color: var(--cii-cyan);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Input Area with Professional Vector Chat Icons
   ========================================================================== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
}

.chat-prefix-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9fa 0%, #e1f5f7 100%);
    border: 1px solid rgba(24, 188, 199, 0.4);
    border-radius: 50%;
    color: #104549;
    box-shadow: 0 1px 4px rgba(16, 69, 73, 0.08);
    pointer-events: none;
    z-index: 2;
    transition: all 0.2s ease;
}

.chat-prefix-icon svg {
    width: 17px;
    height: 17px;
    stroke: #0f7680;
    fill: none;
    transition: all 0.2s ease;
}

.input-wrapper input {
    flex: 1;
    height: 48px;
    padding: 0 18px 0 48px; /* space for professional chat badge icon */
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    background: #fcfdfe;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrapper:focus-within .chat-prefix-icon {
    background: linear-gradient(135deg, #104549 0%, #18bcc7 100%);
    border-color: #18bcc7;
    box-shadow: 0 2px 8px rgba(24, 188, 199, 0.35);
}

.input-wrapper:focus-within .chat-prefix-icon svg {
    stroke: #ffffff;
    color: #ffffff;
}

.input-wrapper input:focus {
    border-color: var(--cii-cyan);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(24, 188, 199, 0.18);
}

#sendButton {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #104549 0%, #18bcc7 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 69, 73, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    color: #ffffff;
}

.send-svg-icon {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: transform 0.15s ease;
}

#sendButton:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #94a3b8;
    box-shadow: none;
}

#sendButton:not(:disabled):hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(24, 188, 199, 0.35);
}

#sendButton:not(:disabled):hover .send-svg-icon {
    transform: translate(1px, -1px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #eef8f9;
    border-radius: var(--radius-full);
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--cii-cyan);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

/* Suggestions Dropdown */
.suggestions-container {
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 56px;
    background: #ffffff;
    border: 1.5px solid var(--border-highlight);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
    background: #eef9fa;
}

.suggestion-icon {
    font-size: 15px;
}

.suggestion-text {
    flex: 1;
    color: var(--text-main);
    font-weight: 500;
}

.suggestion-category {
    font-size: 11px;
    text-transform: uppercase;
    background: #e2e8f0;
    color: var(--text-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 34, 36, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2005;
    transition: transform 0.15s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.15s ease-out;
}

/* Responsive Tweaks */
@media (max-width: 680px) {
    body {
        padding: 0;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }

    .chat-header {
        margin: 6px 6px 2px 6px;
        padding: 8px 10px;
    }

    .cii-logo-img {
        height: 30px;
    }

    .header-edulogo-img {
        height: 34px;
    }

    .status-indicator-capsule {
        padding: 4px 8px;
        font-size: 10px;
    }

    .category-status-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
    }

    .category-box {
        font-size: 11px;
        padding: 7px 4px;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .quick-btn {
        font-size: 10px;
        padding: 6px 3px;
    }

    .chat-prefix-icon {
        width: 28px;
        height: 28px;
        left: 6px;
    }

    .chat-prefix-icon svg {
        width: 14px;
        height: 14px;
    }

    .input-wrapper input {
        padding-left: 40px;
    }
}