/* Estilos personalizados de la aplicación. Agrega aquí tus ajustes sin tocar el core de Bootstrap. */

body {
    background-color: #f7f7f9;
}

.card {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.table-responsive {
    font-size: 0.95rem;
}

/* Layout estilo WhatsApp Web */
.chat-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    min-height: 75vh;
    background: linear-gradient(135deg, #0c2d48, #1c3f5e);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.chat-sidebar {
    background: #1f2c34;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-sidebar__header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-list {
    overflow-y: auto;
}

.chat-list__item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    color: #d1d7db;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease;
}

.chat-list__item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-list__item.active {
    background: rgba(37, 211, 102, 0.12);
}

.chat-list__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2a3942;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #9de1fe;
}

.chat-list__time {
    color: #8696a0;
    font-size: 0.8rem;
}

.chat-list__preview {
    color: #99a7b2;
    font-size: 0.9rem;
}

.chat-window {
    background: #0b141a;
    display: flex;
    flex-direction: column;
}

.chat-window__header {
    padding: 12px 16px;
    background: #202c33;
    color: #e9edef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-window__body {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #202c33;
    color: #e9edef;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background: #202c33;
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background: #005c4b;
}

.chat-window__composer {
    padding: 12px;
    background: #202c33;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        max-height: 260px;
    }
}
