/**
 * Archivo: design/style.css
 * Actualización: Layout de dos columnas y fondo temático Londres.
 */

:root {
    --primary-color: #0088cc;
    --side-bar-bg: #ffffff;
    --chat-bg: #e5ddd5;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Contenedor Maestro */
.main-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* COLUMNA IZQUIERDA: Usuarios */
.sidebar {
    width: 300px;
    background: var(--side-bar-bg);
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sidebar { display: none; } /* Se oculta en móviles para ahorrar espacio */
}

.sidebar-header {
    padding: 15px;
    background: #f0f2f5;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.user-list {
    flex: 1;
    overflow-y: auto;
}

.user-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* ÁREA DE CHAT (DERECHA) */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    /* FONDO PERSONALIZADO ESTILO DOODLE LONDRES */
    background-color: #d1d7db;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'), 
                      linear-gradient(rgba(229, 237, 213, 0.9), rgba(229, 237, 213, 0.9)),
                      url('https://img.freepik.com/free-vector/london-city-doodle-seamless-pattern_1284-52115.jpg'); /* Imagen de referencia de Londres */
    background-blend-mode: overlay;
    background-size: auto, cover, 300px;
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Burbujas */
.msg {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    font-size: 14.5px;
}

.msg.me { align-self: flex-end; background: #dcf8c6; }
.msg:not(.me) { align-self: flex-start; background: #ffffff; }

/* Barra inferior */
.bottom-nav {
    background: #f0f2f5;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 5px 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}
