/* groups.css - Estilo Discord */

#discord-layout {
    display: flex;
    height: calc(100vh - 60px); /* Resta la altura del header */
    background-color: #202225; /* Fondo oscuro Discord */
    color: #dcddde;
    overflow: hidden;
}

/* 1. COLUMNA GRUPOS (Izquierda) */
#servers-sidebar {
    width: 72px;
    background-color: #202225;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    overflow-y: auto;
    border-right: 1px solid #121212;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #36393f;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s;
    color: white;
    font-size: 1.2em;
}

.server-icon:hover, .server-icon.active {
    border-radius: 16px; /* Efecto cuadrado redondeado de Discord */
    background-color: var(--color-principal);
}

.add-server-btn {
    color: #43b581;
    background-color: #36393f;
}
.add-server-btn:hover {
    background-color: #43b581;
    color: white;
}

/* 2. COLUMNA CANALES (Centro) */
#channels-sidebar {
    width: 240px;
    background-color: #2f3136;
    display: flex;
    flex-direction: column;
}

.channels-header {
    padding: 12px 16px;
    box-shadow: 0 1px 0 rgba(4,4,5,0.2);
    font-weight: bold;
    color: white;
}

.channel-item {
    padding: 8px 12px;
    margin: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #8e9297;
    display: flex;
    align-items: center;
}

.channel-item:hover {
    background-color: #34373c;
    color: #dcddde;
}

.channel-item.active {
    background-color: #393c43;
    color: white;
}

/* 3. ÁREA DE CHAT (Derecha) */
#chat-area {
    flex-grow: 1;
    background-color: #36393f;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 12px 16px;
    box-shadow: 0 1px 0 rgba(4,4,5,0.2);
    background-color: #36393f;
    display: flex;
    align-items: center;
    gap: 10px;
}

#messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Estilo del mensaje individual */
.msg-row {
    display: flex;
    gap: 10px;
}
.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-principal);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    color: #121212;
}
.msg-content h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: white;
}
.msg-content span {
    font-size: 0.7rem;
    color: #72767d;
    font-weight: normal;
    margin-left: 5px;
}
.msg-content p {
    color: #dcddde;
}

/* Input de Chat */
#message-input-area {
    padding: 20px;
    background-color: #36393f;
    display: flex;
    gap: 10px;
}
#msg-input {
    flex-grow: 1;
    background-color: #40444b;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: #36393f; padding: 20px; border-radius: 8px; width: 300px;
    display: flex; flex-direction: column; gap: 10px;
}









.explore-btn {
    background-color: #2da44e; /* Verde tipo "Descubrir" */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.explore-btn:hover {
    background-color: #2c974b;
    border-radius: 30%;
}

.explore-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #444;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 1px solid #555;
}

.btn-join {
    background-color: #5865F2;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-join:hover {
    background-color: #4752C4;
}