/* ============================= */
/* ===== FONDO GLOBAL ===== */
/* ============================= */
body.groups {
  background: url('https://programavivesindolor.com/wp-content/uploads/fondo-1.png') no-repeat center center fixed;
  background-size: cover;
}

/* ============================= */
/* ===== LAYOUT GENERAL ===== */
/* ============================= */
.layout {
  display: flex;
  height: 100vh;
  background: #f1f5f9;
  overflow: hidden;
}
/* ============================= */
/* ===== SIDEBAR ===== */
/* ============================= */
.sidebar {
  width: 260px;
  background: #0f172a;
  color: white;
  padding: 15px;
  overflow-y: auto;
  flex-shrink: 0;
  border-right: 1px solid #1e293b;
}

.sidebar-title {
  color: white;
  margin-bottom: 12px;
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lista */
.custom-groups-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-groups-list li {
  margin-bottom: 4px;
}

/* Links */
.custom-groups-list a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: #cbd5f5;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-groups-list a:hover {
  background: #1e293b;
  color: white;
}

.custom-groups-list li.active a {
  background: #334155;
  color: white;
  font-weight: 500;
}

/* Badge */
.badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

/* ============================= */
/* ===== CONTENIDO ===== */
/* ============================= */
.content {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
  background: transparent;
  min-width: 0;
  width: 100%;
  max-width: none;
}

/* ============================= */
/* ===== NAV INTERNA ===== */
/* ============================= */
#item-nav ul {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  padding: 0;
}

#item-nav a {
  font-size: 13px;
  padding: 6px 10px;
  background: #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #0f172a;
}

#item-nav a:hover {
  background: #cbd5f5;
}

/* ============================= */
/* ===== CONTENIDO GRUPO ===== */
/* ============================= */
#item-body {
  background: white;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ============================= */
/* ===== ACTIVIDAD ===== */
/* ============================= */
.activity {
  margin-top: 10px;
}

.activity-comments {
  display: none !important;
}

.activity-comments.is-open {
  display: block !important;
}

/* ============================= */
/* ===== ESTADO VACÍO ===== */
/* ============================= */
.empty-state {
  text-align: center;
  margin-top: 100px;
  color: #64748b;
  font-size: 14px;
}

/* ============================= */
/* ===== SCROLL ===== */
/* ============================= */
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

/* ============================= */
/* ===== OCULTAR ELEMENTOS ===== */
/* ============================= */

/* Tabs concretas */
#item-nav a[href*="members"],
#item-nav a[href*="media"] {
  display: none !important;
}

/* Header / Footer */
header,
footer,
.site-header,
.site-footer {
  display: none !important;
}

/* Filtros */
#activity-filter-select {
  display: none !important;
}

/* Botón salir grupo */
#buddypress a.leave-group,
#buddypress .group-button.leave-group {
  display: none !important;
}

/* RSS */
#buddypress .feed,
#buddypress .rss,
#buddypress a[title="RSS"],
#buddypress a[href*="feed"] {
  display: none !important;
}

/* Info grupo */
.group-admins,
.group-mods,
.group-members {
  display: none !important;
}

#item-header-avatar {
  display: none !important;
}

/* Mensajes */
.activity.single-group #message.info {
  display: none !important;
}

/* ============================= */
/* ===== AJUSTES LAYOUT BP ===== */
/* ============================= */
#item-header-cover-image {
  display: block !important;
}

#item-header-content {
  width: 100% !important;
  max-width: none !important;
}

#item-meta p {
  max-width: 800px;
  line-height: 1.6;
}

#item-meta .highlight,
#item-meta .activity {
  display: none !important;
}

/* ============================= */
/* ===== RESPONSIVE ===== */
/* ============================= */
@media (max-width: 768px) {

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #1e293b;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
  }

  .custom-groups-list {
    display: flex;
    gap: 8px;
  }

  .custom-groups-list li {
    flex: 0 0 auto;
  }

  .custom-groups-list a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  .content {
    padding: 15px;
  }

  #buddypress #item-header {
    display: none !important;
  }
}

/* ============================= */
/* ===== EXTRA ===== */
/* ============================= */
.vsd-time {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 8px;
}

/* ===== MENSAJES DIRECTOS (CHATS TIPO SLACK) ===== */

.custom-dm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-dm-list li {
  margin-bottom: 4px;
}

.custom-dm-list a {
  color: #94a3b8;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.custom-dm-list a:hover {
  background: #1e293b;
  color: white;
}

/* ===== BOTÓN NUEVO CHAT ===== */
.new-chat {
  color: #38bdf8;
  font-weight: 500;
}

.new-chat:hover {
  background: #1e293b;
  color: white;
}
.custom-dm-list li.active a {
  background: #334155;
  color: white;
}