/* CITBot Web Interface - Modern Dark Theme */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 900px;
    height: 85vh;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #444;
}

.chat-header h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.chat-header .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #2a2a2a;
}

.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.message p {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 75%;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message p {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bot-message p {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
    border-left: 3px solid #667eea;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: #1e1e1e;
    border-top: 1px solid #444;
}

#user-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 24px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: #667eea;
}

#send-btn {
    padding: 12px 24px;
    margin-left: 12px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#send-btn:active {
    transform: translateY(0);
}

.chat-footer {
    padding: 12px;
    text-align: center;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #888;
}

.typing-indicator {
    display: inline-block;
    padding: 12px 16px;
    background-color: #3a3a3a;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        height: 90vh;
        border-radius: 0;
    }
    
    .message p {
        max-width: 85%;
    }
    
    .chat-header h2 {
        font-size: 20px;
    }
}


