body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.panel {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 70%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

.chat-container {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
}

#chatHistory {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #fafafa;
}

.message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    line-height: 1.5;
}

.user-message {
    background: #e3f2fd;
    margin-left: 20%;
}

.bot-message {
    background: #f1f1f1;
    margin-right: 20%;
}

.input-area {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}

textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
}

#projectInfo {
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
    display: none;
}

/* Añade esto al CSS existente */
.status-badge {
    font-size: 0.6em;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
}

.status-connected {
    background: #4CAF50;
    color: white;
}

.status-disconnected {
    background: #F44336;
    color: white;
}

.response-time {
    font-size: 0.8em;
    text-align: right;
    color: #666;
    padding: 5px 10px;
}

#userMessage {
    transition: all 0.3s;
}

#userMessage:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}