/* 
 * Component-specific CSS for Chatbot Management Platform
 * Styles for reusable UI components across the application
 */

/* Bot list items */
.bot-list-item {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bot-list-item:hover {
    background-color: #f1f1f1;
}

.bot-list-item.active {
    background-color: #e9ecef;
    border-left: 3px solid #0d6efd;
}

/* Editor sections */
.editor-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.editor-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

/* User list table */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

.user-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Buttons */
.danger-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.danger-btn:hover {
    background-color: #c82333;
}

/* Embed code display */
.embed-code-container {
    margin-top: 15px;
}

.embed-code-area {
    width: 100%;
    height: 120px;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Deployment info display */
.deployment-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e9f7fd;
    border-radius: 6px;
    border-left: 4px solid #0d6efd;
}

.deployment-info h3 {
    margin-top: 0;
    color: #0d6efd;
}

.deployment-info p {
    margin: 5px 0;
}

/* Loading indicator */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #6c757d;
}

.loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}
