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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #F0FBEB;
}

/* Background Image Styling */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

/* Console Styling - Lower Left */
.console-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-header h3 {
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.console-controls {
    display: flex;
    gap: 8px;
}

.console-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.console-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.console-content {
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.console-output {
    padding: 12px 16px;
}

.console-line {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.console-line:last-child {
    margin-bottom: 0;
}

.console-line.user-data {
    color: #00ff88;
}

.console-line.system {
    color: #ffaa00;
}

.console-line.error {
    color: #ff4444;
}

/* Chatbot Styling - Lower Right */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.chatbot-title span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.chatbot-controls {
    display: flex;
    gap: 8px;
}

.chat-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
    min-height: 200px;
}

.message {
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease-out;
}

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

.bot-message .message-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 6px;
    max-width: 85%;
    margin-left: 0;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 6px 18px;
    max-width: 85%;
    margin-left: auto;
    text-align: right;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    padding: 16px 20px;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 16px 16px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-button {
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.2s ease;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .console-container,
    .chatbot-container {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
    
    .console-container {
        bottom: 420px;
    }
    
    .chatbot-container {
        bottom: 20px;
        max-height: 380px;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar,
.console-output::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.console-output::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.console-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.console-output::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}