/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Segoe UI', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Chatbot Toggle Button*/
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f1629 0%, #1e3a8a 50%, #0f172a 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.8);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle svg {
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.chatbot-toggle .close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(90deg);
}

.chatbot-toggle.active .chat-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.chatbot-toggle.active .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Chatbot Window - Ultra Transparent with Dark Blue Theme */
.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    height: 520px;
    background: rgba(9, 14, 30, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(9, 14, 30, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.chatbot-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(15, 23, 42, 0.02) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Resize Handle - Consistent with chatbot design */
.resize-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    cursor: nw-resize;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-window:hover .resize-handle {
    opacity: 1;
}

.resize-handle:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.resize-handle::before {
    content: '⤡';
    color: #93c5fd;
    font-size: 12px;
    line-height: 1;
    transition: color 0.3s ease;
}

.resize-handle:hover::before {
    color: #ffffff;
}

/* Draggable Window */
.chatbot-window.dragging {
    user-select: none;
    transition: none;
}

.chatbot-window.resizing {
    user-select: none;
    transition: none;
}

/* Chatbot Header - 50% transparent with left-aligned text */
.chatbot-header {
    background: rgba(15, 23, 42, 0.5);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 24px 24px 0 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    cursor: move;
}

.chatbot-header::before {
    display: none;
}

.header-content {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.bot-avatar {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.bot-avatar::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #60a5fa 0%, #3b82f6 70%);
    border-radius: 50%;
    top: 12px;
    left: 7px;
    box-shadow: 
        0 0 8px rgba(59, 130, 246, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: robot-blink 3s infinite;
}

.bot-avatar::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #60a5fa 0%, #3b82f6 70%);
    border-radius: 50%;
    top: 12px;
    right: 7px;
    box-shadow: 
        0 0 8px rgba(59, 130, 246, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: robot-blink 3s infinite;
}

.bot-avatar svg {
    display: none;
}

.bot-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    text-align: left;
}

.bot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status {
    font-size: 13px;
    opacity: 0.8;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #22c55e 0%, #10b981 50%, #059669 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(16, 185, 129, 1),
        0 0 25px rgba(34, 197, 94, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: pulse-green 2s infinite;
}

/* Messages Area - Ultra transparent */
.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(9, 14, 30, 0.1);
    backdrop-filter: blur(10px);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.user-message {
    align-self: flex-end;
}

.message-content {
    background: rgba(15, 23, 42, 0.3);
    padding: 14px 18px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.05);
    position: relative;
}

.message-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

.user-message .message-content {
    background: rgba(29, 58, 116, 0.3);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 4px 20px rgba(29, 58, 116, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
    position: relative;
    z-index: 1;
}

.user-message .message-content p {
    color: #ffffff;
}

/* Comprehensive Markdown styling for bot messages */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin: 18px 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
    color: #60a5fa;
}

.message-content h1 {
    font-size: 22px;
    color: #3b82f6;
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
    padding-bottom: 10px;
    margin-bottom: 16px;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.message-content h2 {
    font-size: 20px;
    color: #60a5fa;
    border-left: 4px solid rgba(59, 130, 246, 0.6);
    padding-left: 12px;
    margin-left: -12px;
}

.message-content h3 {
    font-size: 18px;
    color: #93c5fd;
}

.message-content h4 {
    font-size: 16px;
    color: #bfdbfe;
}

.message-content h5 {
    font-size: 15px;
    color: #dbeafe;
}

.message-content h6 {
    font-size: 14px;
    color: #f0f9ff;
    opacity: 0.9;
}

/* Text formatting */
.message-content strong,
.message-content b {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}

.message-content em,
.message-content i {
    color: #c084fc;
    font-style: italic;
    text-shadow: 0 0 4px rgba(192, 132, 252, 0.2);
}

.message-content u {
    color: #34d399;
    text-decoration: underline;
    text-decoration-color: rgba(52, 211, 153, 0.5);
}

.message-content s,
.message-content del {
    color: #f87171;
    text-decoration: line-through;
    text-decoration-color: rgba(248, 113, 113, 0.6);
}

.message-content mark {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Code styling */
.message-content code {
    background: rgba(15, 23, 42, 0.8);
    color: #22d3ee;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    font-size: 13px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.1);
}

.message-content pre {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.message-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.1) 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.message-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
}

/* Lists styling */
.message-content ul,
.message-content ol {
    margin: 16px 0;
    padding-left: 24px;
    position: relative;
}

.message-content ul li {
    color: #e2e8f0;
    margin: 8px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 8px;
}

.message-content ul li::marker {
    color: #3b82f6;
    content: '•';
    font-size: 16px;
}

.message-content ol li {
    color: #e2e8f0;
    margin: 8px 0;
    line-height: 1.6;
    padding-left: 8px;
}

.message-content ol li::marker {
    color: #60a5fa;
    font-weight: 600;
}

.message-content li ul,
.message-content li ol {
    margin: 8px 0;
    padding-left: 20px;
}

/* Blockquotes */
.message-content blockquote {
    border-left: 4px solid rgba(59, 130, 246, 0.6);
    margin: 16px 0;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 8px 8px 0;
    color: #cbd5e1;
    font-style: italic;
    position: relative;
    backdrop-filter: blur(5px);
}

.message-content blockquote::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 8px;
    font-size: 32px;
    color: rgba(59, 130, 246, 0.4);
    font-family: serif;
}

/* Tables */
.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.message-content th,
.message-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.message-content th {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.message-content td {
    color: #e2e8f0;
}

.message-content tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Horizontal rules */
.message-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    margin: 24px 0;
    border-radius: 1px;
}

/* Links */
.message-content a {
    color: #22d3ee;
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
    transition: all 0.3s ease;
    padding-bottom: 1px;
}

.message-content a:hover {
    color: #67e8f9;
    border-bottom-color: rgba(103, 232, 249, 0.6);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

/* Task lists */
.message-content input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #3b82f6;
}

.message-content li:has(input[type="checkbox"]) {
    list-style: none;
    margin-left: -24px;
    padding-left: 24px;
}

/* Keyboard keys */
.message-content kbd {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    display: inline-block;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    margin: 0 2px;
}

.message-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.message-content li {
    color: #e2e8f0;
    margin: 6px 0;
    line-height: 1.5;
}

.message-content li::marker {
    color: #3b82f6;
}

.message-time {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.7);
    margin-top: 6px;
    padding: 0 18px;
    font-weight: 500;
}

.user-message .message-time {
    text-align: right;
}

/* Input Area - Ultra transparent dark blue */
.chatbot-input {
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 0 0 24px 24px;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

#message-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 28px;
    background: rgba(9, 14, 30, 0.3);
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

#message-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(9, 14, 30, 0.5);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.2);
}

#message-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.send-button {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #0f1629 0%, #1e3a8a 50%, #0f172a 100%);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.send-button:hover {
    transform: scale(1.05);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button svg {
    width: 20px;
    height: 20px;
}

.send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator - Enhanced */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.05);
    max-width: 80px;
    opacity: 0.8;
    position: relative;
    align-self: flex-start;
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.typing-indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    animation: typing 1.4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

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

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 
            0 0 15px rgba(16, 185, 129, 1),
            0 0 25px rgba(34, 197, 94, 0.8),
            inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 
            0 0 25px rgba(16, 185, 129, 1),
            0 0 35px rgba(34, 197, 94, 1),
            inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
}

@keyframes robot-blink {
    0%, 85%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    87%, 95% {
        opacity: 0.3;
        transform: scaleY(0.1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        right: 16px;
        bottom: 16px;
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    .chatbot-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .chatbot-window {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 350px;
        height: 500px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 120px);
        border-radius: 24px;
    }
    
    .resize-handle {
        display: none;
    }
    
    .chatbot-header {
        padding: 16px 20px;
        border-radius: 24px 24px 0 0;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .bot-avatar {
        width: 40px;
        height: 40px;
    }
    
    .bot-avatar::before,
    .bot-avatar::after {
        width: 12px;
        height: 12px;
        top: 10px;
    }
    
    .bot-avatar::before {
        left: 6px;
    }
    
    .bot-avatar::after {
        right: 6px;
    }
    
    .bot-info h3 {
        font-size: 16px;
    }
    
    .status {
        font-size: 12px;
    }
    
    .chatbot-messages {
        padding: 16px;
        gap: 12px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .message-content {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .message-content h1 {
        font-size: 20px;
    }
    
    .message-content h2 {
        font-size: 18px;
    }
    
    .message-content h3 {
        font-size: 16px;
    }
    
    .message-content code {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .message-content pre {
        padding: 12px;
        margin: 12px 0;
        font-size: 12px;
    }
    
    .message-time {
        font-size: 10px;
        padding: 0 16px;
    }
    
    .chatbot-input {
        padding: 16px 20px;
        border-radius: 0 0 24px 24px;
    }
    
    .input-container {
        gap: 10px;
    }
    
    #message-input {
        font-size: 16px;
        padding: 12px 18px;
        border-radius: 28px;
    }
    
    .send-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .send-button svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        right: 12px;
        bottom: 12px;
    }
    
    .chatbot-toggle {
        width: 54px;
        height: 54px;
    }
    
    .chatbot-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    .chatbot-header {
        padding: 14px 16px;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .bot-avatar {
        width: 36px;
        height: 36px;
    }
    
    .bot-avatar::before,
    .bot-avatar::after {
        width: 10px;
        height: 10px;
        top: 9px;
    }
    
    .bot-avatar::before {
        left: 5px;
    }
    
    .bot-avatar::after {
        right: 5px;
    }
    
    .bot-info h3 {
        font-size: 15px;
    }
    
    .status {
        font-size: 11px;
    }
    
    .chatbot-messages {
        padding: 12px;
    }
    
    .message-content {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .chatbot-input {
        padding: 12px 14px;
    }
    
    .input-container {
        gap: 8px;
    }
    
    #message-input {
        font-size: 16px;
        padding: 10px 14px;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .send-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        flex-shrink: 0;
    }
    
    .send-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .chatbot-header {
        padding: 12px 14px;
    }
    
    .bot-info h3 {
        font-size: 14px;
    }
    
    .chatbot-messages {
        padding: 10px;
    }
    
    .message-content {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .chatbot-input {
        padding: 10px 12px;
    }
    
    .input-container {
        gap: 6px;
    }
    
    #message-input {
        padding: 8px 12px;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .send-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
    }
    
    .send-button svg {
        width: 18px;
        height: 18px;
    }
}