/* --------------------------------------------------- */
/* Estilos Generales y de Layout
/* --------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #EBF4FF; /* Fondo azulado sutil */
    color: #1c1e21;
}

.banner {
    background-color: #e4e6eb;
    padding: 10px 0;
    text-align: center;
}

.sidebar, .main-content, .right-sidebar {
    padding-top: 1.5rem;
}

footer {
    background-color: #ffffff;
    border-top: 1px solid #dddfe2;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer a {
    color: #4b4f56;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* --------------------------------------------------- */
/* Barra de Navegación y Menús
/* --------------------------------------------------- */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dddfe2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 3px solid #2563eb; /* Acento de color principal */
}

.navbar-brand {
    color: #0d6efd !important;
}

.channel-list .list-group-item {
    background-color: transparent;
    border: none;
    color: #4b4f56;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.channel-list .list-group-item:hover {
    background-color: #e4e6eb;
}

.channel-list .list-group-item.active {
    background-color: #e7f3ff;
    color: #2563eb;
    font-weight: bold;
}

.channel-list .list-group-item .fa-hashtag, .channel-list .list-group-item .fa-home {
    color: #2563eb;
}

.nav-tabs .nav-link {
    color: #606770;
}

.nav-tabs .nav-link.active {
    color: #2563eb;
    border-color: #dee2e6 #dee2e6 #fff;
}


/* --------------------------------------------------- */
/* Tarjetas (Posts, Comentarios, Perfil, etc.)
/* --------------------------------------------------- */
.post-card, .right-sidebar .card, .comment-card, .comment-form-card, .profile-header, .comment-history-card, .settings-card, .event-card {
    background-color: #ffffff;
    border: 1px solid #dddfe2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e7f3ff; /* Borde de acento sutil */
    transition: border-left-color 0.3s;
}

.post-card:hover {
    border-left-color: #2563eb; /* Borde de acento al pasar el mouse */
}

.post-card .card-footer, .comment-card .card-footer {
    background-color: transparent;
    border-top: 1px solid #e4e6eb;
}

.post-card-actions a, .comment-actions a {
    color: #606770;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.post-card-actions a:hover, .comment-actions a:hover {
    color: #2563eb;
    text-decoration: underline;
}


/* --------------------------------------------------- */
/* Formularios y Botones
/* --------------------------------------------------- */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1e40af;
}

.form-control {
    background-color: #f0f2f5;
    border-color: #ccd0d5;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}


/* --------------------------------------------------- */
/* Componentes Específicos
/* --------------------------------------------------- */

/* Perfil de Usuario */
.profile-header {
    padding: 2rem;
    margin-bottom: 2rem;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.comment-history-card .comment-quote {
    border-left: 3px solid #e4e6eb;
    padding-left: 1rem;
    font-style: italic;
    color: #606770;
}

/* Notificaciones */
.notification-bell .fa-bell {
    font-size: 1.25rem;
}
.notification-bell .notification-dot {
    position: absolute;
    top: 0;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
}
.notifications-dropdown {
    width: 350px;
    max-width: 95vw;
    max-height: 400px;
    overflow-y: auto;
}
.notifications-dropdown .dropdown-item {
    white-space: normal;
}

/* Modal de Comentarios y Adjuntos */
#commentsModal .modal-body {
    max-height: 50vh;
    overflow-y: auto;
}
.new-comment-highlight {
    background-color: #e7f3ff;
    transition: background-color 1.5s ease-out;
}
.attachment-toolbar .btn {
    border: none;
    font-size: 1.2rem;
    color: #2563eb;
}
.preview-container {
    position: relative;
    display: inline-block;
}
.remove-attachment-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    padding: 0.25rem !important;
    opacity: 0.8;
}
.remove-attachment-btn:hover {
    opacity: 1;
}
.comment-card .user-avatar {
    width: 40px;
    height: 40px;
}

/* Página de Eventos */
.event-card {
    margin-bottom: 1.5rem;
}
.event-card .card-img-top {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    max-height: 250px;
    object-fit: cover;
}
.event-date {
    font-weight: bold;
    color: #2563eb;
}
