/* --- 1. Definición de Variables de Color y Estilo (Tema) --- */
:root {
    --font-family: 'Poppins', sans-serif;
    --primary-color: #007bff; /* Un azul moderno */
    --text-color: #343a40;
    --text-color-light: #6c757d;
    --background-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --border-radius: 0.375rem; /* 6px */
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* --- 2. Estilos Generales del Body --- */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* --- 3. Sidebar Minimalista (Para el Dashboard) --- */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
}

/* --- 4. Botones Pequeños y Optimizados --- */
.btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border-width: 1px;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-outline-success:hover, .btn-outline-danger:hover {
    color: white;
}

/* --- 5. Tarjetas (Cards) y Acordeón --- */
.card, .accordion-item {
    border: 1px solid var(--border-color);
    box-shadow: none;
    border-radius: var(--border-radius);
}
.card-header, .accordion-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
}

/* --- 6. Formularios Limpios --- */
.form-control, .form-select {
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
}

/* --- 7. Estilos de la Pantalla de Login --- */
#login-container {
    background-color: #f0f2f5;
    background-image: linear-gradient(120deg, #eef2f8 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    border-radius: 1rem !important;
    border-top: 5px solid var(--primary-color) !important;
    border: none;
}
.login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.login-header .card-title {
    font-weight: 700;
    color: var(--text-color);
}
#login-container .form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
}
#login-container .btn-primary {
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Estilos para el avatar del bot en el dashboard */
.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border